Tag: output
Get Result of Command using Python in Linux
October 7, 2007
Execute a command and get its results using python in Linux import commands result = commands.getoutput(“ls”)
Fetch columns of Output using Awk
July 9, 2007
One can use awk to get a specific column from a command output… First column of the command date|awk ‘{print…
Get the First Line of Command Output in Shell
July 7, 2007
Get just the first line of the output of a command… <command>|head -n1 ls -1|head -n1
Recent Comments