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

Shell scripting help



Hi

Can anybody help with this simple script

Command is useradd userfile


useradd
userfile=$1
s=0
for i in 'cat $userfile ';do
        $NAME='cut -d : -f1'
        echo $NAME
done


userfile

name:password:detail:UID
name:password:detail:UID
name:password:detail:UID
name:password:detail:UID
name:password:detail:UID


Many Thanks

Mike





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