find / \ -newer $1
Above is the code I have so far. I am trying to make find find all files newer then the argument 1 while only staying in the current directory. I have tried various ways of using prune but I cant seem to find one that works. Any suggestions?
Thank you
You want the
-maxdepth 1flag. Why are you usingfind /if you want to operate on the current directory? It should be something like: