sed is utility to replace particular text with new text in files.
s/// doesn’t work with \n
use y/// for \n replacement
sed 'y/ /\n/g'
Or you can use ‘tr’
$> tr -s '~' '\n' < inputfile > outputfile
sed is utility to replace particular text with new text in files.
s/// doesn’t work with \n
use y/// for \n replacement
sed 'y/ /\n/g'
Or you can use ‘tr’
$> tr -s '~' '\n' < inputfile > outputfile
This entry was posted on Thursday, August 24th, 2006 and is filed under Programming. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
3d alt+tab autohotkey blu-ray Carpal Tunnel Syndrome clock DD-WRT design dvd-cd Ebay encrypt flash flip-3d flv folders free freeware hana hana-xml-stat icon image keyboard launcher Linksys MadeByMe microsoft mouse movie Outlook pdf putty Router sarah search Shortcut speed ssh statistics taskbar track-ball tv video widget WordPress wp-plugin
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Fusion theme by digitalnature | powered by WordPress |
60 queries. 0.333 seconds.
Entries (RSS) and Comments (RSS) ^
Recent Comments