linux 小窍门

用正则,查找文件
find .|xargs grep -ri "要查找的字符串"
find . -name '*.cc'|xargs grep -ri "onSubflowNewState"

export 'NS_LOG=MpTcpTestingExample=level_all|prefix_func|prefix_time:MpTcpModi=level_all|prefix_func|prefix_time:MpTcpSocketBase=level_all|prefix_func|prefix_time:MpTcpSubflow=level_all|prefix_func|prefix_time'

MpTcpCrypto
MpTcpFullMesh
MpTcpMapping
MpTcpNdiffPorts
MpTcpSchedulerFastestRTT
MpTcpSchedulerRoundRobin
MpTcpSocketBase
MpTcpSubflow
TcpOptionMpTcp

'NS_LOG=MpTcpModi=level_all|prefix_func|prefix_time:MpTcpCrypto=level_all|prefix_func|prefix_time:MpTcpFullMesh=level_all|prefix_func|prefix_time:MpTcpMapping=level_all|prefix_func|prefix_time:MpTcpNdiffPorts=level_all|prefix_func|prefix_time:MpTcpSchedulerFastestRTT=level_all|prefix_func|prefix_time:MpTcpSchedulerRoundRobin=level_all|prefix_func|prefix_time:MpTcpSocketBase=level_all|prefix_func|prefix_time:MpTcpSubflow=level_all|prefix_func|prefix_time:TcpOptionMpTcp=level_all|prefix_func|prefix_time'

你可能感兴趣的:(linux 小窍门)