Tuesday, May 5, 2009

Find Command Tips

Find out multiple files                                                                                                                
Find out multiple extention files with Total size

find / \( -name '*.mpg' -o -name '*.mp3' -o -name '*.mov' -o -name '*.wma' \) -exec du -sk {} \; | awk '{c+=$1} END {printf "%s KB\n", c}'

#find / \( -name '*.mpg' -o -name '*.mp3' -o -name '*.mov' -o -name '*.wma' \) -exec du -sk {} \; 

 

Find out multiple extention files with Total size


find / \( -name '*.mpg' -o -name '*.mp3' -o -name '*.mov' -o -name '*.wma' \) -exec du -sk {} \; | awk '{c+=$1} END {printf "%s KB\n", c}'



























No comments:

sanjay's shared items

My Blog List