repgrep
automates your grep
command and will run your command every X seconds (Similiar to watch command).
Just change your grep
command to repgrep
and add the -rep X flag.
- Set alias for
repgrep
, such as: alias repgrep='~/repgrep/repgrep.sh'. - Set the script full permissions using chmod
- Use
repgrep
command instead ofgrep
. add -rep for setting the interval (default is 10sec)- i.e. repgrep "/share/xorg" ../ -r -rep 3
Just go for it.