userlist=`who | cut -d " " -f1`
linetotal=`cat $userlist| wc -l`
linenumber='1'
while [ $linenumber -le linetotal ]
do
username=`somestuff` put that in for now
basically i want the username variable to be equal to the first line from who | cut -d " " -f1`...and from the loop move to the next line of `who | cut -d " " -f1` and so on until the loop is cleared...
any ideas thanks
linetotal=`cat $userlist| wc -l`
linenumber='1'
while [ $linenumber -le linetotal ]
do
username=`somestuff` put that in for now
basically i want the username variable to be equal to the first line from who | cut -d " " -f1`...and from the loop move to the next line of `who | cut -d " " -f1` and so on until the loop is cleared...
any ideas thanks
Comment