On Tue, 22 Mar 2005 12:00:39 -0800, John W. Krahn wrote: > > HN=`perl -F: -lane'print $F[0]'` > SN=`perl -F: -lane'print $F[4]'` >
Hi ubergoonz, Just a little addition to John's answer - to understand his solution, read "perldoc perlrun" from your command-line, or online at: http://perldoc.perl.org/perlrun.html It will explain all the flags used in the solutuion (-F, -l, -a, -n and -e). -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>