### Users List
#cat /user.txt
user1
user2
user3
user3
### Script :
#! /bin/bash
if [ $# -lt 1 ]
then
echo "use not properly can use this file"
exit 0
fi
if [ -f $1 ]
then
for user in $(cat "$1")
do
useradd $user
done
else
echo "file not found"
fi
#vim /user.sh /user.txt
#cat /user.txt
user1
user2
user3
user3
### Script :
#! /bin/bash
if [ $# -lt 1 ]
then
echo "use not properly can use this file"
exit 0
fi
if [ -f $1 ]
then
for user in $(cat "$1")
do
useradd $user
done
else
echo "file not found"
fi
#vim /user.sh /user.txt