#!/bin/bash # File Monitor # function list () { #ls -l #sleep 1 # more elegant: watch -n 1 "ls -l" } while true; do list | grep $1 done