Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

aexprot bash varible to another script

script 1 #############
rr=`echo $directory_rr | awk '{split($1,a,"/"); print a[2]}'`
 . /location/profiles.sh 

#this "." /location/profiles.sh is very important for sourcing


script 2#################

grep Etot location/md.out | awk -v env_var="$rr" do something  > mm_prof_$rr


Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #aexprot #bash #varible #script
ADD COMMENT
Topic
Name
9+2 =