[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Read multiple variables
- Subject: [ale] Read multiple variables
- From: leamhall at gmail.com (leam hall)
- Date: Thu, 12 Sep 2013 08:35:05 -0400
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>