Input:
hello
enrico
output:
ocirne
olleh
To do this, I can simply tac a file and pipe the output to rev (or the other way around), so one function that does the job is just this:
revtac() { tac "$@" | rev; }
Is there a built-in function for the job?
I suspect that this could potentially break something, as it would reverse <CR> and <LF> on Windows-generated files, but I'm still interested.