I currently have a script that generates random words to create passwords. I run this by selecting the script and letting it know how many words I want .e.g ./generate_passwords.sh 5
. This creates five strong words.
This is the bit I am having trouble with. I want to pipe this into sed which should take the spaces between those words and replace them with random special characters. Is there a way to do this?
e.g ./generate_passwords.sh 5 | sed 's/ //g'
(This removes all spaces and inserts nothing.)
This should be the desired outcome: word#word*word!