How to remove the first part of lines?
Hi
I have a file where I want to remove the first part of every line in that file. Does someone know with what command I can do that? Every line starts with "added:" which is the part I want to remove. Thanks for your help. |
sed 's/added://' filename > newfile
or you can open up something like vi and do this command in command mode: 1:$ s/added://g You could also get fancy with awk as well.. man sed man awk man vi for more details.. |
Great help!
I have got it working. Thanks a lot Regards, Ben |
Quote:
|
All times are GMT -5. The time now is 03:17 PM. |