"Ian Perry" <[EMAIL PROTECTED]> writes:
> USER=$( who|grep ttyS1 | awk '{printf $1}')
In the interests of eliminating unneeded commands, did you realise you
can write this more easily as the following?
USER=$(who | awk '$2=="ttyS1" { print $1 }')
--
Carey Evans http://home.clear.net.nz/pages/c.evans/
GNU GPL: "The Source will be with you... always."
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble? e-mail to [EMAIL PROTECTED] .

