functionchange() { result=$1 before='pvwdgazxubqfsnrhocitlkeymj' after='abcdefghijklmnopqrstuvwxyz' for ((i=0; i <= ${#before}; i++)) do if [[ ${before:${i}:1} = ${1} ]] then result=${after:${i}:1} break fi done }
input='Wxgcg txgcg ui p ixgff, txgcg ui p epm. I gyhgwt mrl lig txg ixgff wrsspnd tr irfkg txui hcrvfgs, nre, hfgpig tcm liunz txg crt13 ra "ixgff" tr gntgc ngyt fgkgf.'
output='' j=0 while [ "$j" -le ${#input} ] do change "${input:${j}:1}" output="${output}${result}" j=$((j+1)) done echo${output}