% perl -i -pe 's/^--(.*)\n//g' your_file
hm. that would delete every line that starts with two dashes (the original poster wanted to keep those lines).
Update: removed the 'm' modifier bit, since the code was acting on the file, instead of acting on the 'slurped' file.
hope this helps,
In reply to Re: Re: simple (in theory) regexp question
by CukiMnstr
in thread simple (in theory) regexp question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |