bug-fileutils
[Top][All Lists]
Advanced

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

df output on unbroken lines


From: David T-G
Subject: df output on unbroken lines
Date: Mon, 17 Jun 2002 13:40:37 -0500
User-agent: Mutt/1.4i

Hi, all --

Is there any way to get the output of df to be on unbroken lines?  To
wit:

  bash-2.05a$ uname -a
  SunOS nfs5 5.8 Generic sun4u sparc

  bash-2.05a$ /usr/bin/df -k /nfs/data31
  Filesystem            kbytes    used   avail capacity  Mounted on
  nfs3.acdin.de.ittind.com:/data31
                       25428071 22173515 3000276    89%    /nfs/data31

  bash-2.05a$ /usr/bin/df -k /nfs/data31 | cat
  Filesystem            kbytes    used   avail capacity  Mounted on
  nfs3.acdin.de.ittind.com:/data31 25428071 22173515 3000276   89%  /nfs/data31

  bash-2.05a$ df --version
  df (GNU fileutils) 4.0
  
  bash-2.05a$ df -kh /nfs/data31 | cat
  Filesystem            Size  Used Avail Use% Mounted on
  nfs3.acdin.de.ittind.com:/data31
                         24G   21G  2.9G  88% /nfs/data31

I know that having the output put on separate lines makes for a prettier
display, but it also makes for a real pain when parsing in a script :-)


TIA & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) address@hidden * than to live up to them. -- fortune cookie
(work) address@hidden
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgpeTZRDdfmXz.pgp
Description: PGP signature


reply via email to

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