Hi Ethan, 
Our SA gave me the following script...  
Put it in your /usr/local/bin and include the dir in PATH... 

- Kirti 

#!/bin/ksh
# -- bdfg 

COUNT=0

bdfit () {
if [ -z "$SIZE" ] ; then
   LVOL2=$LVOL
   ((COUNT=1))
else
  if [ "$COUNT" -eq "1" ] ; then
      echo $LVOL2 $LVOL $SIZE $USED $FREE $PERCNT|awk '{ printf "%-33s %10s%10s%10s%6s 
 %-26s\n", 
$1, $2, $3, $4, $5, $6}'
      COUNT=0
      unset LVOL2
  else
      echo $LVOL $SIZE $USED $FREE $PERCNT $MOUNT|awk '{ printf "%-33s %10s%10s%10s%6s 
 %-26s\n", 
$1, $2, $3, $4, $5, $6}'
  fi
fi
}

if [ -z "$1" ] ; then
  /usr/bin/bdf|while read LVOL SIZE USED FREE PERCNT MOUNT ; do
    bdfit
  done
else
  echo Filesystem kbytes used avail %used Mounted |awk '{ printf "%-33s 
%10s%10s%10s%6s  %-26s\n",

$1, $2, $3, $4, $5, $6}'
  for FILESYS in $* ; do
    /usr/bin/bdf $FILESYS|grep -v Filesystem|while read LVOL SIZE USED FREE PERCNT 
MOUNT ; do
      bdfit 
    done
  done
fi
#


--- "Post, Ethan" <[EMAIL PROTECTED]> wrote:
> Note that the foofoofoo volume causes the disk info to show up on the
> following line.  A script I have that loops through each line coming back
> from bdf is breaking because of this.  Any simple way to bring the line back
> up to the Filesystem line using awk, sed etc...?
> 
> bdf -l
> 
> Filesystem          kbytes    used   avail %used Mounted on
> /dev/vg02/foofoo   2048000 1973804   70415   97% /foofoo
> /dev/vg02/foofoofoo
>                      53248    6624   43711   13% /foofoofoo
> /dev/vg02/foofoof   512000  259286  236944   52% /foofoof
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Post, Ethan
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Kirtikumar Deshpande
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to