in reply to Formatting Text Output

You are using // to split on, which gives you a list of each character. You probably want to split on /\s+/ to split on 1 or more spaces.

Replies are listed 'Best First'.
Re: Re: Formatting Text Output
by TekWannaBe (Initiate) on Jan 30, 2004 at 23:13 UTC
    I have tried that and the entire file blows up. This is what is returned. I get the headers and the header results fall in the next block. Thanks for taking a look see.
    ====================== |Filesystem | |kbytes | |used | |avail | |capacity | |Mounted | ====================== ====================== |/dev/dsk/c1t0d0s0 | |2016343 | |1392095 | |563758 | |72% | |/ | ====================== ====================== |/proc | |0 | |0 | |0 | |0% | |/proc | ====================== ====================== |mnttab | |0 | |0 | |0 | |0% | |/etc/mnttab | ====================== ====================== |fd | |0 | |0 | |0 | |0% | |/dev/fd | ====================== ====================== |swap | |3888376 | |40 | |3888336 | |1% | |/var/run | ====================== ====================== |swap | |3888432 | |96 | |3888336 | |1% | |/tmp | ====================== ====================== |/dev/dsk/c1t0d0s7 | |32442879 | |523735 | |31594716 | |2% | |/export/home | ======================
      It sounded like that was the output you were looking for. Can you show what you want it to look like?