Hello guys im new in ubuntu,so i have an assigment to make a script that makes new user from text file.i have some problems and cant extract from text.may u help me?thanks a lot. Here's my code:
while [ $Username! = "" ] do Username=`grep "Username00$num" $Path | cut -f2 -d:` #Username num=$(($num+1)) Password=`grep "Password" $Path | cut -f2 -d:` Group=`grep "Group" $Path |cut -f2 -d:` #Group groupadd $Group
the problem is on first line,i cant paste the whole code cause is 160 lines.