Reputation: 667
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
Upvotes: 0
Views: 78
Reputation: 224854
You want the -maxdepth 1
flag. Why are you using find /
if you want to operate on the current directory? It should be something like:
find . -maxdepth 1 -newer $1
Upvotes: 5