Jul 7, 2006 #1 jouell MIS Nov 19, 2002 304 US Hi. How would I use sed to replace all white space in a file with a semicolon? cat file | sed -e 's/ /:/g' is ok but is leaves a bunch of ":". I need to have just one. I am using GNU sed version 4.1.2 Thanks! -jouell
Hi. How would I use sed to replace all white space in a file with a semicolon? cat file | sed -e 's/ /:/g' is ok but is leaves a bunch of ":". I need to have just one. I am using GNU sed version 4.1.2 Thanks! -jouell
Jul 7, 2006 1 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE [tt]sed -e 's/ \+/:/g' < file[/tt] Upvote 0 Downvote
Jul 7, 2006 Thread starter #3 jouell MIS Nov 19, 2002 304 US THANK YOU TonyGroves! I knew I was close, but you nailed it thanks! Upvote 0 Downvote