#! /bin/bash # find in time # arpinux 2012 if [ "$2" = "" ]; then param=1 else param=$2 fi if [ "$1" == "-m" ]; then find /$PWD/ -mmin -$2 elif [ "$1" == "-d" ]; then find /$PWD/ -mtime -$2 else echo "find_in_time Usage:" echo "mods -m 'n' = modified in the last 'n' minutes" echo "mods -d 'n' = modified in the last 'n' days" fi