 |
Command Line Tips — For Linux/Mac OS X Newbies
In Python, often you may want to execute linux command and get the output of the command as string variable. Naive way to do that is to execeute the linux command, save the output in file and parse the file. >>> import os >>> cmd = “wc -l myTextFile ...
cmdlinetips.com |
 |