Skip to content

Instantly share code, notes, and snippets.

@malteo
Created March 28, 2013 09:55
Show Gist options
  • Save malteo/5262057 to your computer and use it in GitHub Desktop.
Save malteo/5262057 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read -r line
do
echo "$line$(pwgen -s 16 1)"
done < $1 >temp
mv temp $1
@targzeta
Copy link

Another way:

#!/bin/bash
IFS=$'\n'
for row in $(<$1)
do 
   echo $row$(pwgen.sh)
done > temp
mv temp $1

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment