Nov 20, 2007 #1 philipose Programmer Dec 24, 2003 137 US This seems to be a silly thing. But I cant figure it out. How can I say substitute all commas with carriage returns ? sed -e "s/,/?/g" What should come in the place of "?" Thanks philipose
This seems to be a silly thing. But I cant figure it out. How can I say substitute all commas with carriage returns ? sed -e "s/,/?/g" What should come in the place of "?" Thanks philipose
Nov 20, 2007 1 #2 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE I'd use tr: [tt]tr ',' '\n' <infile >outfile[/tt] or, if you really want carriage returns: [tt]tr ',' '\r' <infile >outfile[/tt] HTH, p5wizard Upvote 0 Downvote
I'd use tr: [tt]tr ',' '\n' <infile >outfile[/tt] or, if you really want carriage returns: [tt]tr ',' '\r' <infile >outfile[/tt] HTH, p5wizard
Nov 20, 2007 Thread starter #3 philipose Programmer Dec 24, 2003 137 US p5wizard, Thanks a lot. Got it Upvote 0 Downvote