filesystem | find

find

find flv files and show/delete them:

find . -name "*.flv" -exec echo {} \;

find . -name "*.flv" -exec rm -f {} \;

find duplicates, delete them w/o confirmation:

fdupes -rS .

fdupes -rSd .

fdupes -rSdN .

find ape files and convert them to flac:

find /path/to/MainDir/ -type f -name "*.ape" -execdir sh -c ' ffmpeg -i "$1" "${1%.ape}.flac" ' _ {} \;

find srt files and move them:

find /path/to/search/ -type f -name "*.srt" | xargs cp -t /target/path/

count number of pdf/mp3 etc files in subdirectories

/bin/ls -lR | grep .*.pdf | wc -l

Word count:

pdftotext son.pdf - | wc -w