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

[ale] Read multiple variables



Well, I used to know how to do this. Trying to get multiple variables set
in one line:

while read UID GID COMMENT
do
 echo UID is $UID, GID is $GID, and it's $COMMENT"
done < grep person /etc/passwd | awk -F":" '{ print $3, $4, $5 }'

Does not work well at all. Any ideas?

Thanks!

Leam

-- 
Mind on a Mission <http://leamhall.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130912/7debc7be/attachment.html>