watch -- execute commands over and over again.
* execute commands over and over again - run fortune (program) every 20 seconds, run program 'w' every 2 seconds (default), keep track of filename.
watch -n 20 fortune
watch w
watch ls -l filename
DZone Snippets > nevadalife > bash
12123 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
watch -n 20 fortune
watch w
watch ls -l filename
find -name "*" -exec rm {} \; find -name "*" -exec rm {} \;; lsfind -type f -print
find . -type f -exec grep foo {} \;find dirname
find . | grep test.txt
diff <dir1> <dir2>
nawk -Fc '{print $1}' test.txt
nawk -F: '{print $2}' test.txt
diff -Naur test.old test.cpp > test.patch
patch test.cpp test.patch
patch -R test.cpp test.patch