remove huge amount of files
i have i directory that contains huge amount of files
i need to remove the old files until specific date thx alot |
To list the files which will be erased:
Code:
find <directory> -mtime +<number of days since the file was last modified> Code:
find <directory> -mtime +<number of days since the file was last modified>|xargs /bin/rm -f To know more: "man find" |
what the usage of |xargs /bin/rm -f ??
|
|xargs** says: "Take the results of the previous command and use them in the following command, as if they had been entered with the latter."
**I don't think you can have xargs without a pipe (|) feeding it. |
thx alot
|
All times are GMT -5. The time now is 08:29 PM. |