sed to remove specific lines in a file
I have a large file whose contents looks like this:
fkjdls;a fdjksa;|| fdjksa;|fjkd;as| fjdk; fdjka;jfdsa|| fjkd;a|fjkd;saj| fjkd;l I want to only remove the lines that contain the double pipes that are together '||'. Would I use 'sed' for this? Any input would be appreciated. |
Grep should work: grep -v '||' largefilename >notsolargefilename
Dave |
Yes you would =)
sed -i '/||/d' file Cheers, Tink |
Or grep works too.....
grep -v \|\| |
All times are GMT -5. The time now is 12:56 PM. |