find and xargs: search and bulk operations
Track down any files by name, age, permissions, size and owner, and process them in bulk — even with spaces in their names.
- find: files by nameeasy
- find: directories onlyeasy
- find: all hidden files in the projecteasy
- find: by modification timeeasy
- find: newer than referenceeasy
- find -empty: empty fileseasy
- find -perm: by access permissionseasy
- find -size: files larger than 1 MBeasy
- find -maxdepth: no descending into subdirectorieseasy
- find -user: files by ownereasy
- find -exec: make executablemedium
- find -delete: delete by patterneasy
- find -prune: exclude a directorymedium
- find -print0 | xargs -0medium
- xargs -0: names with spacesmedium
- xargs: delete files from a list with spacesmedium
- xargs -I: templated commandmedium
- Split a list into groups of threemedium
- find + xargs grepmedium
- find: database dumps older than a weekeasy
- find: clean dangling links out of the assetsmedium
- find: compound filtermedium
- Compress logs in parallel and safely with respect to spacesmedium