Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls?
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls?
find . -type f -mtime 2 (exactly 2 days)
find . -type f -mtime +2 (2 days or more)
find . -type f -mtime 3 (exactly 3 days)
find . -type f -mtime +3 (3 days or more)
find . -type f -mtime 4 (exactly 4 days)
find . -type f -mtime +4 (4 days or more)
etc.
can you provide an example for me?
You still need an example? That was complete solution to your problem, try sb008's suggestions please.