Pages

Friday 5 January 2018

find and delete files based off grep search

at some point it could be useful to search for the text within a group of file names and delete those,  here's an example terminal command to find and execute a deletion of files which meet a certain criteria

find . -name "*2017-11*" -exec /bin/rm {} \;

No comments:

Post a Comment