|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: question for perl book & magazine authorsby chester (Hermit) |
| on Oct 19, 2005 at 21:57 UTC ( #501444=note: print w/ replies, xml ) | Need Help?? |
|
In vim, the command :g/re/p (where g means "global", re is clearly "regex" and p means "print") will find all lines matching the regex and print them in a list. This was apparently true of vim's predecessors as well, but it's still a valid (and useful) command in vim today. See also Wikipedia.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||