Hot answers tagged

1

Assuming usernames are one per line or separated by one or more spaces, in the listfile, you can use this : for user in $(cat listfile) do useradd -m -d /home/top100/${user} ${user} done



Only top voted, non community-wiki answers of a minimum length are eligible