This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#I use grep almost every day. Such a powerful tool should be used in a very skillfull way. | |
#I want to open this gist for notetaking when I meet new commands. | |
#search in a folder in recursive way | |
grep -r "task" ../src | |
#ignore the case | |
grep -r -i "TaSk" ../src | |
#search for a whole word |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import time | |
from mininet.net import Mininet | |
from mininet.node import Host, OVSSwitch, Controller, RemoteController | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel, info | |
from mininet.link import Link, Intf, TCLink |