Hi guys,
I am new to unix scripting.
I have a folder rx and it has subfolders rx1,rx2 and rx3
each subfolder has 4 directories each load,land,arch and extr
I have the below tar and rm commands using wich we should write a shell script
rx1--
tar -cf $INFA_TGT_DIR/rx/rx1/arch/TELE.PNC.ACH.`date +%m-%d-%Y-%R`.gz *
rm -f $INFA_TGT_DIR/rx/rx1/load/*.*
rx2--
tar -cf $INFA_TGT_DIR/rx/rx2/arch/ars.644366.out.`date +%m-%d-%Y-%R`.gz *
rm -f $INFA_TGT_DIR/rx/rx2/load/*.*
rx3--
tar -cf $INFA_TGT_DIR/rx/rx3/arch/ars.644362.out.`date +%m-%d-%Y-%R`.gz *
rm -f $INFA_TGT_DIR/rx/rx3/load/*.*
please help me to write a shell script for the above req