help with korn script

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

:confused:

You have a shell script already. Is it not working?

I have scripts which needs to be executed manually.I want some help in writing the script

---------- Post updated at 02:19 PM ---------- Previous update was at 02:17 PM ----------

I have scripts which needs to be executed manually.I want some help in writing the script which can do tar and rm in all the directories at the same time