Mimick tac with python.

Hongyi Zhao hongyi.zhao at gmail.com
Sat Jan 30 01:18:36 EST 2016


On Fri, 29 Jan 2016 23:58:38 -0500, Random832 wrote:

> python <(echo 'import sys;print("".join(reversed(list(sys.stdin))))')

Why do you write it as follows:

cat input_file | python -c 'import sys;print("".join(reversed(list
(sys.stdin))))'

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.



More information about the Python-list mailing list