Python RegEx One-Liner in a Pipe – Remove Hard Line Wrapping – No Perl

Just put Python in your pipe and let Perl rest in peace. Python can be used as a one-liner in a pipe. Replacing text with a regular expression used to be the last holdout of perl, but now you can … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | Leave a comment

Capture Program Output on Python – subprocess.check_output()

Run an external program, capture output. With pipe support. Prequisites: command line, Python hello world. One Liner Well, two lines if you count module import. Try it out in a python console: $ python >>> import subprocess >>> subprocess.check_output(“echo hello … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment
  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects