This line edit in place (-n option) filename removing any line like b|b|b|b, and save the original filename as filename.bak (-i.bak option).perl -ni.bak -e 'print unless /(b\|)*b/' filename
In reply to Re: How do I delete/modify one line from test file ?
by marcos
in thread How do I delete/modify one line from test file ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |