in reply to Delete in a range of Dates
grep -v ^\*\*\*\*2005 filename
This will print out all lines which don't start with ****2005.
The perl equivalent would be the loop:
but, again, not much point to the extra typing unless you need something extra that grep won't do for you.while(<>) { print unless /^\*\*\*\*2005/; }
|
|---|