If you're merely trying to delete lines beginning with ';', then the following should work.
It also creates a backup file file.bak by using the -i flag. See perlrun for more options. Hope that helped,perl -ni.bak -e 'print unless /^;/' file
In reply to Re: deleting special lines from files
by Velaki
in thread deleting special lines from files
by theroninwins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |