I have this file:
# more file.txt
2c2
lns-ld-wall-01-t2 old:261,260
4c4
Prive_ORANGE old:258,259
I need to remove all lines like this one 2c2
and this one 4c4
. How can I do in a shell script?
I have this file:
I need to remove all lines like this one |
|||||
|
This should work:
However as mentioned in the comment, above command will not remove the complete lines, so a better way would be to use the
Or with extended regular expressions with GNU
|
|||||||||||||||||||||
|
See the Here:
would filter out lines consisting of |
|||||||||||||
|
Take the perl way. Test with:
Change the file
|
|||
|