Using the find command

view full story

http://www.unix.com – Hi all, 1). Is is possible to use the date builtin and subtract a literal e.g 1 day in bash alongwith the find command from the command line: e.g Code: find . -name --date %Y-%m-%d - 1 2). I want to search for files in the pwd but not search any subdirectories and exclude any hidden files or hidden directories : This is what I have so far but I am not sure how to return files but exclude the -type d in one statement: Code: find . -daystart \( ! -name . -prune -and ! -name ".*" \) -type f -mtime 2 -exec echo echo rm {} \; Many thanks for your help Modera (HowTos)