Summary: OT:Script Help

From: <UAdmnSUN_at_netscape.net>
Date: Sun Mar 30 2003 - 22:06:41 EST
Hi again,

Thanks for the overwhelming responses
ended up replcing print statement with printf 
printf ("%s  ",$6)

UnixAdmin

UAdmnSUN wrote:

>Hello managers,
>
>I have a script like this
>#!/bin/ksh
>df -kF ufs | grep -v "File" |nawk '
>       { split($5,tempval,"%")
>         used=tempval[1]
>         if(int(used)> 95){
>            print $6
>         }
>       }
>'
>And this script outputs like this:
>/
>/var
>/u01
>/u02
>/u03
>
>I want the output like this "/ /var /u01/ /u02 /u03". How do i put it into an array induvidually and get the array elements in one string. 
>
>Thanks in advance.
>UnixAdmin
>
>
>
>__________________________________________________________________
>Try AOL and get 1045 hours FREE for 45 days!
>http://free.aol.com/tryaolfree/index.adp?375380
>
>Get AOL Instant Messenger 5.1 for FREE! Download Now!
>http://aim.aol.com/aimnew/Aim/register.adp?promos=380455
>

__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promos=380455
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Mar 31 11:38:48 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:07 EST