[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Modifying Routing Tables on the fly



"Ian Perry" <iperry@ram.net.au> 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
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: