Contributions / comments are welcome!
This file contains 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
pane logstats 0 :stats 1 :* 0 :/home/ab 0 htop :htop | |
pane logstats 0 :stats 1 :* 1 :/home/ab 0 watch :watch -n1 lsusb | |
pane logstats 0 :stats 1 :* 2 :/home/ab 0 sudo :sudo iotop -o | |
pane logstats 0 :stats 1 :* 3 :/home/ab 1 mtr :mtr www.google.com 5 -s 1 -wt -i 2 | |
pane logstats 0 :stats 1 :* 4 :/home/ab 0 watch :watch -n1 -d free -m; df -h | |
pane logstats 0 :stats 1 :* 5 :/home/ab 0 watch :watch -n2 -d route -n | |
pane logstats 1 :tail 0 :- 0 :/home/ab 0 tail :tail -F /var/log/syslog | |
pane logstats 1 :tail 0 :- 1 :/home/ab 1 tail :tail -F /var/log/kern.log | |
window logstats 0 1 :* 562f,227x57,0,0[227x12,0,0,0,2 |
- If vim paste is messed up, then do
:set paste
Get the output of grep --color=auto -ril "keyword" .
and sort it according to modify date.
find . -type f -exec grep -q keyword {} \; -printf '%T@/%p\0' | sort -zn | while IFS=/ read -rd '' tsamp file; do printf 'timestamp: %s, file: %s\n' "$tsamp" "$file"; done