I\'m searched for a long time how to do a simple string manipulation in UNIX
UNIX
I have this string:
theStr=\'...............\'
You can achieve this with sed, the stream line editor:
sed
echo $theStr | sed s/./A/5
First you pipe the output of $theStr to sed, which replaces the fifth character with A.