By emily
I have kind of used both the awk/sed command and found them really useful.
But at the necessity I am having right now, I need help.
Actually, I would like to do the following in file script.sh
PATH535[1]="/eos/uscms/store/user/pooja04//analysis2012/535/mc/summer12/002/tt/"
there is whole script which works all fine, now my present task is to somehow read the RED LINE , and
change the “tt” to various varaible.
So I have something in mind as:
GREP[1]="ttbar"
GREP[2]="DYJets50"
GREP[3]="zgamma"
GREP[4]="mJetA"
GREP[5]="mJetB"
for FileNameIndx in "${GREP[@]}"
do
change the tt in script.sh to GREP[1]
do something ......
done
Can somebody help me with the BLUE color command, how shall I implement that?
thanks in advance
emily
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums