Hello ;
I would like to know if it is possible to define a variable in a script and
call it from a SAC macro
For exemple :
Script : (This is a part of my script where i define my variable "x ")
.....................................
(( x = nbrf/nbrj ))
echo " number of stacking file is : " $x
echo " Processing stacking for ever" $nbrj " days"
echo "---------------------------------------------------"
cd ..
mkdir $nbrj
cd copies
# Running SAC
sac <<EOF
read /home/radia/Bureau/Radia/CROSS-1B/TRITUE/copies/cor.1.sac
quit
EOF
##########################################################################
SAC macro : (This is a part of my SAC macro where i would like to use the
variable "x ")
...........
read /home/radia/Bureau/Radia/CROSS-1B/TRITUE/copies/cor.%s%.sac
DO i FROM 1 TO* $x *BY 1
INSTRUCTIONS.....
ENDDO
Thank you in advance for your help
--
KHERCHOUCHE Radia
Doctorante en Géophysique
Laboratoire de Géophysique
rkherchouche<at>usthb.dz
Université des Sciences et de la Technologie Houari Boumediene
BP 32 El Alia ALGER