Use Python to reverse stdin by words (rev will do this by characters)
#!/usr/bin/env python3
import sys
for line in sys.stdin:
print(' '.join(line.split()[::-1]))
Use Python to reverse stdin by words (rev will do this by characters)
#!/usr/bin/env python3
import sys
for line in sys.stdin:
print(' '.join(line.split()[::-1]))