in reply to Take file A , translate it, place in new file
perl -i.bak -pe 'tr/a-zA-Z/0-310/; $_ .= "\n"' /tmp/foo.txt [download]