[ale] my 1st shell script - chk big files
John Pilman
jcpilman at gmail.com
Sun Mar 20 11:58:06 EDT 2011
> find / -type f -size +100M | grep -v /swapfile | grep -v /sys/devices |
> grep -v /proc >> file_list.txt
Instead of searching entire directories and then filtering them with
grep, you could exclude them from the search. That should speed
thongs up.
Find / -type f -path /sys/devices -prune -o -path /proc -prune -o
-size +100M |grep -v /swapfile >> file_list
...John
More information about the Ale
mailing list