Creating a secret code converter

view full story

http://www.unix.com – Bashers, thanks for taking the time to look at my post. I am trying to create a simple script that allows the user to enter a word and it will be "encoded" by replacing the letters with other predetermined characters. I am attempting to run one long sed command through a text file that contains a user inputted string. What is happening is that its making multiple changes to one character instead of changing the character just once. How can I tell sed to basically change a character once but not again after it has been changed. Code: #!/bin/bash clear echo -ne "Enter word (HowTos)