Jim Meyering wrote (Thursday, August 02, 2012 2:08 PM): > You need the double quotes around $nl with bash, > but not with zsh: > > zsh$ nl=' > quote> ' > zsh$ printf %s $nl > > zsh$
For bash, one solution is: $ printf '\na\nb'|tac -rs '.\|'$(printf "\n") b a $ ;-) Have a nice day, Berny