Subject: Re: nightly report disk info to <80 columns?
To: Perry E. Metzger <>
From: Rui Paulo <>
List: tech-userlevel
Date: 08/21/2005 18:13:14
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.08.21 11:23:28 +0000, Perry E. Metzger wrote:
| Right now, our nightly reports for disk always have the top line say:
| Filesystem    Size      Used     Avail Capacity  iused    ifree %iused  M=
ounted on
| which is more than 80 columns.
| Any objections to passing this through sed 's/Mounted on/Mount/' by
| default to make it fit in less than 80 columns?

Hmm, this seems to be related to how df(1) prints the header.
Doing a simple 's/Mounted on/Mount/' won't solve the problem because when
you remove the '-h' option passed to df(1), you'll get the following header:
Filesystem  512-blocks      Used     Avail Capacity  iused    ifree  %iused=
  Mounted on
where not even the full word 'Mounted' will fit.

What about removing file system size/used/avail/capacity from df -i ?

		-- Rui Paulo

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.1 (NetBSD)