My code
#!/bin/bash
echo -n "Zadaj vetu: "
read str
echo $str | awk '{ for (i=NF; i>1; i--) printf("%s ",$i); print $1; }' | tr ' ' '\n' | tr -d '#' | tr -d '=' | tr -d '-'
I need help, I don't understand how to make all the digits in the string that we thought to increase by one. (If there are 9 we should do 0)
example: He11o my name 3s Artem 2029 --> He22o my name 4s Artem 3130
forloop is processing each field, not each character.tr ' ' '\n' | tr -d '#' | tr -d '=' | tr -d '-'for?