in reply to Re: Simple awk question
in thread Simple awk question
perl -e 'print (split /\s+/, "'$variable'")[0]'
nested quotes? :)
update
and the brackets belong to print , (...)[0] won't work.
Cheers Rolf
(addicted to the Perl Programming Language)
|
---|
In Section
Seekers of Perl Wisdom