iliak
Contributor
- Joined
- Dec 18, 2018
- Messages
- 148
hi, i am trying to make a chron job to delete old files from specific folder,
i have tried and validated that this line in work in ubuntu , but it does not work on freenas
the folder sometimes contail lots of files (over 1M most of them very small), normal rm sometimes fail due to size limits, and this command work much faster
any idea what i did wrong?
i have tried and validated that this line in work in ubuntu , but it does not work on freenas
the folder sometimes contail lots of files (over 1M most of them very small), normal rm sometimes fail due to size limits, and this command work much faster
Code:
perl -e 'unlink grep { -f and -M >= 7 } glob "/mnt/junk/*/20*"'
any idea what i did wrong?
Last edited: