in reply to Delete line if REGEX == true
use strict; use warnings; while (<>) { print unless /,,,,,/; }
...will do it. Or the command-line equivalent:
perl -ne "print unless /,,,,,/" infile > outfile
Please note that I only tested this under Windows, so you may have to change double-quotes to single-quotes on a Unix system.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete line if REGEX == true
by sgifford (Prior) on Aug 07, 2005 at 06:49 UTC | |
by castaway (Parson) on Aug 07, 2005 at 15:24 UTC | |
by sgifford (Prior) on Aug 07, 2005 at 18:18 UTC |