this is the example of file im parsing.
______________________________________________________________________ +__________ sis4.snap.synapticcorp.com Tue Apr 15 08:00:01 EDT 2003 ______________________________________________________________________ +__________ Filesystem Type kbytes use avail %use Mounted on /dev/root xfs 3913932 2203528 1710404 57 / /dev/dsk/dks0d3s0 xfs 71549580 37859480 33690100 53 /u91 /dev/dsk/dks0d5s7 xfs 71680648 61764960 9915688 87 /u93 /dev/dsk/dks0d4s7 xfs 71680648 69750044 1930604 98 /u92 /dev/dsk/dks0d6s7 xfs 35559760 19845240 15714520 56 /u94 /dev/dsk/dks0d2s7 xfs 8885572 6935320 1950252 79 /u01 TOTAL: 263270140 USED: 198358572 75.34% AVAILABLE: 64911568 24.66% ______________________________________________________________________ +__________ ______________________________________________________________________ +__________ sis8 Tue Apr 15 08:00:01 EDT 2003 ______________________________________________________________________ +__________ Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 1620617 1350391 221608 86% / /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd mnttab 0 0 0 0% /etc/mnttab swap 2377840 8 2377832 1% /var/run /dev/dsk/c0t1d0s7 17615408 1963275 15475979 12% /u02 /dev/dsk/c2t0d0s7 4124422 3089923 993255 76% /u05 /dev/dsk/c3t0d0s7 17615408 868115 16571139 5% /u09 /dev/dsk/c0t2d0s7 70582546 20893160 48983561 30% /u03 /dev/dsk/c2t1d0s7 4124422 3089923 993255 76% /u06 /dev/dsk/c0t0d0s7 6541250 4131033 2344805 64% /u01 /dev/dsk/c0t3d0s7 4124422 4083027 151 100% /u04 /dev/dsk/c3t1d0s7 17615408 952763 16486491 6% /u10 /dev/dsk/c2t3d0s7 4124422 1061275 3021903 26% /u08 /dev/dsk/c3t3d0s7 17615408 865803 16573451 5% /u12 /dev/dsk/c3t2d0s7 17615408 3228715 14210539 19% /u11 /dev/dsk/c3t2d0s7 17615408 3228715 14210539 19% /u11 /dev/dsk/c2t2d0s7 4124422 1061275 3021903 26% /u07 /dev/dsk/c4t0d0s7 8705501 119827 8498619 2% /u13 /dev/dsk/c5t0d0s7 70582546 15049876 54826845 22% /u17 /dev/dsk/c4t1d0s7 8705501 677051 7941395 8% /u14 /dev/dsk/c4t2d0s7 8705501 8138339 480107 95% /u15 /dev/dsk/c5t1d0s7 70582546 27119611 42757110 39% /u18 /dev/dsk/c4t3d0s7 8705501 805667 7812779 10% /u16 /dev/dsk/c5t2d0s7 70582546 17826331 52050390 26% /u19 swap 2379704 1872 2377832 1% /tmp /dev/dsk/c5t3d0s7 70582546 4713811 65162910 7% /u20 /dev/dsk/c1t3d0s7 45192698 627 44740145 1% /u21 TOTAL: 554545993 USED: 121091698 21.84% AVAILABLE: 427924004 77.17% ______________________________________________________________________ +__________ ______________________________________________________________________ +__________ lemon.snap.synapticcorp.com Tue Apr 15 08:00:00 EDT 2003 ______________________________________________________________________ +__________ Filesystem 1024-blocks Used Availab +le Capacity Mounted on u-rz9a#root 862032 350099 5119 +33 41% / /proc 0 0 + 0 100% /proc u-rz9g#usr 1536000 857331 6516 +40 57% /usr u-rz9h#var 512000 103959 3964 +48 21% /var u-rz9d#app 768000 516420 2484 +56 68% /app TOTAL: 3678032 USED: 1827809 49.70% AVAILABLE: 1808477 49.17% ______________________________________________________________________ +__________

In reply to Re: couple of file content manipulation questions by Anonymous Monk
in thread couple of file content manipulation questions by vxp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.