scratchpad

From thelinuxwiki
Revision as of 18:06, 8 October 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

rename files and folders

test which prints new filenames... what they would be

for i in *; do newname=`echo $i | sed -e 's/(.*)//g'`; echo $newname; done

netstat (version 1.42) interface rx-err rx-drp rx-ovr monitor

while true; do netstat -i | grep -v -E "lo|Kernel|RX" | awk '{print $5,$6,$7,$9,$10,$11 ","}' | tr -d "\n"; echo; sleep 5; done

ethtool (version 5-5) error monitor

while true; do ethtool -S eth1-01 | grep -E "error|no_buffer"; sleep 5; echo "---------------------"; done