linux echo redirect output to python script code example Example: linux echo redirect output to python script import sys data = sys.stdin.readlines()