what is wrong with this?

<-- start of script

#!/bin/bash
clear

for SOMEVAR in `cat temp`
do 
   usermod -d $SOMEVAR -m `cut -f5 -d/ temp`
done

<-- end of script

where the contents of test file temp is:

1.   /tmp/home/2001/mco-100017
     /tmp/home/2001/acc-100019
     /tmp/home/1995/kap-100021

2.   `cut -f5 -d/ temp` is the username
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to