[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wishlist: --no-header option for df
From: |
James Youngman |
Subject: |
Re: Wishlist: --no-header option for df |
Date: |
Tue, 28 Apr 2009 01:18:46 +0100 |
On Mon, Apr 27, 2009 at 9:14 PM, Christian Hudon <address@hidden> wrote:
> Hello,
>
> I have a small feature request. It'd be nice to have a --no-header option to
> df that skips printing the header line.
The feature is already implemented in sed:-
$ df -P | sed -e 1d|head -3
/dev/mapper/mirror_a-root_fs 5160576 1045448 3852984 22% /
tmpfs 1989896 0 1989896 0% /lib/init/rw
udev 10240 280 9960 3% /dev
>
> The use case for this would be when doing stuff like (in a shell), to check
> the disk space on a particular partition on a long list of machines:
>
> for machine in `long list of machines`
> df --no-header /usr
>
> The output would be much easier to read without the all the interleaved
> header lines.
>
> Thanks for listening,
>
> Christian
>
>
>
> _______________________________________________
> Bug-coreutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-coreutils
>