I'm new to Linux and have recently started working on my very first (very simple) project - a morse code generator. I've been able to get the translation working, and now I want to take the next step.
What would be the best way to go about replacing the character "." with a beep and "-" with a slightly longer beep? I would like to be able to actually produce audible morse code.
Which way would you more advanced users go about doing this? If you have any ideas, please explain in as simple terms as you can.
NOTE: My code is here on pastebin: http://pastebin.com/K5Ap3p4S.
echo
echo "What would you like to translate today?"
read transmission
clear
echo $transmission | sed 's/.\{1\}/& /g' | sed 's/a/.-/g;
s/b/-.../g;
s/c/-.-./g;