in reply to [perlrun/perlre] one-liner to match "readable" lines
The variation of this sort of thing that I tend to use:
perl -ne'/^[A-Za-z]/&&print'Besides being completely straight forward, that beats Abigail's by one stroke... :-) I do, however, agree with the others that have suggested grep(1) or strings(1). In particular, grep(1) seems to make much more sense in this particular case.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: [perlrun/perlre] one-liner to match "readable" lines
by blakem (Monsignor) on Oct 08, 2002 at 02:08 UTC |