arkaine23
05-05-2003, 08:21 PM
I'm trying to edit a small line of text with sed. I need to take the field seperator which is a : and make it become a new line anywhere there is a :
Edit: Got the job done with awk
Edit: Got the job done with awk
|
Click to See Complete Forum and Search --> : help with regular expressions arkaine23 05-05-2003, 08:21 PM I'm trying to edit a small line of text with sed. I need to take the field seperator which is a : and make it become a new line anywhere there is a : Edit: Got the job done with awk bwkaz 05-05-2003, 09:41 PM sed -e 's/:/\n/g didn't work? Maybe sed -e 's/:/ /g' might (with the embedded return)... How'd you do it with awk? baldguy 05-06-2003, 03:58 PM was it this? awk '{RS=":"; print;}' file.txt elote_caliente 05-06-2003, 06:39 PM you can do it very easily like so: cat [filename] | tr ':' '\n' :o justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |