Nov-29-2019, 11:18 AM
Here is one. You can improve it with argparse to include the --help option.
import sys BUFSIZE = 1024 def main(): while True: s = sys.stdin.read(BUFSIZE) if not s: break sys.stdout.write(repr(s)[1:-1]) sys.stdout.flush() if __name__ == '__main__': main()