jsli mas python a chces z 123 udela 321 tak:
python -c 'import sys; [sys.stdout.write("%s\n" % l[::-1]) for l in sys.stdin.readlines()]' < /etc/passwd
#edit takle v radku je to necitelny, pokud tomu obetujes soubor tak:
#!/usr/bin/env python
import sys
for l in sys.stdin.readlines(): print l[::-1]
a poustis soubor.py < neco