perl -ne 'print if /regex/' testfile
See perlrun for the switches, perlre for regex info, and print for printing.
In reply to Re: Simple search and output
by hippo
in thread Simple search and output
by rvaughans
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |