coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Saturday May 25, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 29 guests online

Newest Member

nbewwmbxog

Hit Counter
11572330 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620363
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

perl one-liner to do a dos to unix file conversion
Description

Here is a perl one-liner to do an inline dos to unix file conversion:

# perl -0pi -e 's/(\r\n|\n\r)/\n/g' filename
Example

perl -0pi -e 's/(\r\n|\n\r)/\n/g' filename

Return to search results

Random coolcommands

coolcommand: rdist - to maintain identical copies of files on multiple hosts
Example: rdist -f distfile
[show me the details]
coolcommand: ethtool - how to set ethernet settings in Linux
Example: ethtool -s eth0 autoneg off speed 100 duplex full
[show me the details]
coolcommand: how to see the partition table of a disk in Linux
Example: partprobe -s /dev/sda; fdisk -l /dev/sda
[show me the details]
coolcommand: how to test if the ascii value of a string follows that of another string in a korn shell script
Example: test $string1 > $string2; [[ $string1 > $string2 ]]
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51966
Category AIX49058
Category General UNIX47587
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum