[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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
>