hi, the command you are looking for is niload (panther for unix geeks, p.48), the book illustrates usage by
sudo niload password . << EOF
user1:*:701:701::0:0:user name:/usrs/user1:/bin/bash
EOF
you can use any charcter instead of 'EOF'
if your scripting is good you can have file...