I ran the following command:
sudo dhclient eth0
sudo dhclient eth0
grep -v "word" <file or location>For example, the results of a grep search can include a lot of results which are not relevant. Eliminate those by using grep -v
grep "blah" filename | grep -v "foo"
dig +short myip.opendns.com @resolver1.opendns.com
./config.status --config
from subprocess import Popen, PIPEcmd = "blah blah"process = Popen(cmd.split(), stdout=PIPE)process.communicate() # execute it, the output goes to the stdoutexit_code = process.wait() # when finished, get the exit codeimport os
print os.environ['ENV_VAR_YOU_WANT']