help-bash
[Top][All Lists]
Advanced

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

Re: Sorting directories by size


From: Dennis Williamson
Subject: Re: Sorting directories by size
Date: Tue, 24 Aug 2021 09:31:10 -0500

On Tue, Aug 24, 2021, 9:26 AM hancooper <hancooper@protonmail.com> wrote:

> .
>
> Have got almost what I'd like, except that tho sizes are not in human
> readable form.
>
> find "$src" "${daggr[@]}" -type d -exec du {} + | sort -rn
>
>


Use du -h and feed it into the awk or gawk command in the stackoverflow
answer I linked in my recent message. And don't feed it any names
containing newlines.

>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]