Passing arguments from file to command cat users.txt | xargs -t -n1 -I% bash -c "htpasswd -bB .htpasswd %"