I need to save the output for each command inside the for loop. My code is given below but it is not saving the log files.
count=60
for d in /afs/cern.ch/user/r/rasharma/work/TBA/Data/Run06*
do
echo $d
echo "./shrd51_EventBuilderVFAT.sh $d"
./shrd51_EventBuilderVFAT.sh $d | tee $count_EventBuilder.log
echo "./shrd51_TrackFinder.sh $d"
./shrd51_TrackFinder.sh $d | tee $count_TrackFinder.log
echo "./shrd51_Analyzer.sh $d 0$count"
./shrd51_Analyzer.sh $d 0$count | tee $count_Analyzer.log
count=$((count+1))
done
tee -ato append.> file