i've just started to learn a bit about Bash-Scripting and i've tried to make a script on my own but unfortunately it's not working as it should :/
Here is the script:
Code: Select all
#!/bin/bash
a=$(cat "$1")
echo $a
a=${a//ä/ae}
a=${a//ü/ue}
a=${a//ö/oe}
a=${a//ß/ss}
echo $a
My problem is that
Code: Select all
a=$(cat "$1")
"Hello
World"
will be shown in the terminal by this command as "Hello World". Thats changing the style of the file but thats not my intesion. It should only replace the additional characters
Greets Kaczo