I am trying to edit the following script to add a part to remove all files within a folder containing the word TRAR in their filename. This is a Linux system, I want to add in a part like this :
cd /appl/virtuo/gways/config/input_d
rm -rf TRAR*
The above I cannot get to run, but when I try manually, I am able to do it, I want to add into the below script and am quite lost, as this is my first time writing such a script
VENDOR=ericsson-msc
RELEASE=R13.2
BASE_DIR=/appl/virtuo/gways
RAW_DIR=${BASE_DIR}/config/${VENDOR}/${RELEASE}/trdipfile_raw_landing_area
cd ${RAW_DIR}
ssh netperf@10.76.26.1 "cd /var/opt/ericsson/sgw/outputfiles/apgfiles/oms ; find . -newer ~/msc- trdif-timestamp -type f | egrep TRDIP | cpio -oc ; touch ~/msc-trdif-timestamp" 2>/dev/null | cpio -icdu 2>/dev/null