Search Results

Search: Posts Made By: sp23029
23,000
Posted By Don Cragun
While I agree with what bakunin said in post #5...
While I agree with what bakunin said in post #5 in this thread, note that the find -newermt primary is not in the standards either.

This is why you are always asked to tell us the operating system...
23,000
Posted By bakunin
You can use that but be aware that it is NOT...
You can use that but be aware that it is NOT supported by standard-conforming versions of find. If you use it you limit the usability of what you do to systems where the installed find command is the...
23,000
Posted By drysdalk
Hi, In theory, this should be fairly...
Hi,

In theory, this should be fairly straightforward. If you want to delete all files created from 2017 and beyond (i.e. also files from 2016, 2015, etc - anything older than 2017), then you...
23,000
Posted By Don Cragun
Note that using: find /path/to/files -type f...
Note that using:
find /path/to/files -type f -newermt 2017-01-01 \! -newermt 2018-01-01 -exec rm -fv \{\} \;
will invoke the rm utility once for each of the 200K files you want to remove. That is...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy