Hello Experts
My SAP application is running in IBM AIX. Everyday my application generate some files in the below path as below.
root@sedcaspm0502: pwd
/interfaces/RFTS/B11/archive
root@sedcaspm0502: ls -lrt
-rw-r r 1 ppgadm sapsys 1039445 May 08 01:20 20180508-020004_S3003_MBUSI.gz
-rw-r r 1 ppgadm sapsys 41572356 May 09 01:20 20180509-020104_S3003_SMB.gz
-rw-r r 1 ppgadm sapsys 1046405 May 09 01:28 20180509-020005_S3003_MBUSI.gz
-rw-r r 1 ppgadm sapsys 41882191 May 11 01:20 20180511-020101_S3003_SMB.gz
-rw-r r 1 ppgadm sapsys 1050211 May 11 01:29 20180511-020111_S3003_MBUSI.gz
-rw-r r 1 ppgadm sapsys 1114204250 May 14 01:15 20180514-020059_S3003_SMB
-rw-r r 1 ppgadm sapsys 43945156 May 14 01:23 20180514-020111_S3003_MBUSI
We are zipping all the files and keeping the same directory in every Friday.
I want to make a small shell script to zip the files and keep the same dir.
can someone help me on this please.
facing issues:
- I am not AIX administrator and not work much in shell script
- There is no extension of these files to filter for zipping
Note: Files to be zipped and kept in the same dir with same name.
currently I am using the below syntax to archive the file.
zip <xxxxxxxxxx> <xxxxxxxx.gz>
Thanks & Regards
Sundar.C