|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620363 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
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
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51966 |
| Category AIX | 49058 |
| Category General UNIX | 47587 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|