reverse the order of lines in bash code example Example: reverse the order of lines in bash tail -r myfile.txt