find command tricks
26 Feb 2016
Finding Empty Directories:
Find and bulk move files:
Find and delete:
- Delete all logs which are older than 461 days ago
- Delete all logs which are younger than 90 days ago
- Delete all files containing “failed_core” which are older than 720 days ago
Using ‘grep’ as a ‘find’ command
Finding Difference Between Directories:
- List all files that are different from dir_1 and dir_2
Sort Files:
- To arrange the 3rd and 4th column in numerical with using “:” field separator