[ale] my 1st shell script - chk big files

John Pilman jcpilman at gmail.com
Sun Mar 20 11:59:39 EDT 2011


Did I really let that typo through?  Sorry.
...John

On Sunday, March 20, 2011, John Pilman <jcpilman at gmail.com> wrote:
>> 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