in reply to deleting special lines from files
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: deleting special lines from files
by theroninwins (Friar) on Sep 02, 2004 at 08:58 UTC | |
by davorg (Chancellor) on Sep 02, 2004 at 09:02 UTC | |
by theroninwins (Friar) on Sep 02, 2004 at 09:15 UTC | |
by theroninwins (Friar) on Sep 02, 2004 at 12:41 UTC | |
by davorg (Chancellor) on Sep 02, 2004 at 13:10 UTC | |
by theroninwins (Friar) on Sep 02, 2004 at 13:17 UTC | |
by theroninwins (Friar) on Sep 02, 2004 at 13:33 UTC | |
| |
by Grygonos (Chaplain) on Sep 02, 2004 at 12:59 UTC | |
by graff (Chancellor) on Sep 03, 2004 at 02:50 UTC |