Hi Gurus
the count of files in a particular Directory...
ls -lrth | grep -c ^-
can any one share the command to Count the files which is Older than 3 months
So please help me out in this
Thanks in Advance
Hi Gurus
the count of files in a particular Directory...
ls -lrth | grep -c ^-
can any one share the command to Count the files which is Older than 3 months
So please help me out in this
Thanks in Advance
find . -type f -ctime +90 -print | wc -l
If you want to do it for a specific directory you can also mention the path like below .
find < path_to_dir> -type f -name "*" -ctime +90 | wc -l