Re: more on 1 liner perl/awk
On Mon, Mar 10, 2003 at 09:18:05PM +0000, Colin Watson wrote:
> (All of this is untested.)
> perl -lane'print$F[2]if$F[1]eq"1957"' < mat.txt
>
> Shorter solutions may be possible.
>
> Google for "Perl Golf" if you're interested in this kind of thing: the
> art of solving problems in the fewest (key)strokes.
and i thought *i* had too much free time.
:)
awesome!
--
I use Debian/GNU Linux version 3.0;
Linux server 2.4.20-k6 #1 Mon Jan 13 23:49:14 EST 2003 i586 unknown
DEBIAN NEWBIE TIP #122 from Alexander Steinert <stony8@gmx.de>
:
Looking for a BEGINNER'S GUIDE TO DEBIAN SYSTEM ADMINISTRATION?
You might want to take a look at the documents under
http://www.infodrom.ffis.de/Debian/doc/ -- especially
http://www.infodrom.ffis.de/Debian/doc/maint/
Also see http://newbieDoc.sourceForge.net/ ...
Reply to: