SUMMARY2 -script question - passing variable to ufsdump

From: Laurence Moughan <>
Date: Fri Oct 29 2004 - 11:04:47 EDT
and thanks to Mark for reducing my script to 2 lines !

d=`date +%w`


Wow - speedy response for a friday afternoon,

>From many people, - Thanks u all esp' Ramji

'script is attempting to interpolate a variable
called $duf. In fact, you want a variable called $d concatenated with
string "uf".

You express this as:

ufsdump ${d}uf /dev ....'

so edited as 

ufsdump ${d}uf /dev/rmt/0 /dev/md/dsk/d50 

oh - io also got my source and dump devise wrong way round ! - 

going home now .



can someone please advise what is wrong with below,

set -x

d=`date | awk '{print $1}'`
echo $d
case $d in
        "Mon") d="1" ;;
        "Tue") d="2" ;;
        "Wed") d="3" ;;
        "Thu") d="4" ;;
        "Fri") d="5" ;;
        "Sat") d="6" ;;
        "Sun") d="0" ;;
echo $d

ufsdump $duf /dev/md/dsk/d50 /dev/rmt/0

when run the ufsdump switchs are ignored,

+ + awk {print $1}
+ date
+ echo Fri
+ d=5
+ echo 5
+ ufsdump /dev/md/dsk/d50 /apps1/dump
  DUMP: Bad option `/'
  DUMP: The ENTIRE dump is aborted.


humble poor scripter

For low fares and great deals on hotels, car hire and travel insurance visit
of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.If you have received
this email in error please notify the sender immediately and delete
the material.
sunmanagers mailing list
Received on Fri Oct 29 11:07:01 2004

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