Awesome commands that can make your work lot more simpler if you wish to delete a file which is older than x minutes, you can use the below command find . - type f - mmin + 30 - delete Run script in all directory find . -type d -execdir /path/to/script.sh {} \; you can also execute commands How to sort the finded file based on Size find . - type f - iname "*.$extension" - print0 | xargs - 0 ls - lS How to print all the file in Directory and separate by Line (============== ) find . -type f -exec cat -n {} \; -exec echo "==================================================" \; How to move particular files from one directory to other directory find . -iname "*.csv" -type f | xargs -I '{}' mv {} ~/data/csv here we copy all csv file from current directory to ~/data/csv folder Split single line into multiple lines example: I/p: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O O/p: A,B,C D,E,F G,H,I J,K,L M,N,O this ...
Let's make world safe, use technology wise