Write a unix script to do the following automatically-
-
Identify the latest path version directory under: /data/cs/chk. The latest at this time is 15_1_3.
/data/cs/chk
�
drwxr-x--- 2 dba tms 4096 Jan 22 11:18 15_1_2
drwxr-x--- 2 dba tms 4096 Jan 22 11:18 15_1_3 -
Check for any new versions under /data/cs/test
drwxrwxr-x 2 krp set 4096 Dec 13 13:14 15_1_3
drwxrwxr-x 2 krp set 4096 Jan 26 12:19 15_1_4
- If there is a new versions (in this case version 15_1_4 is new), make new directory under /data/cs/chk /15_1_4
� Copy dataset link.* from /data/cs/test /15_1_4 to /data/cs/chk/15_1_4
� Copy dataset poin.* from path directory: /data/cs/chk /15_1_3 to : /data/cs/chk /15_1_4 Copy com.sas from prior version directory to new version directory. From /data/cs/chk /15_1_3 to /data/cs/chk /15_1_4
� Run the SAS program /data/cs/chk /15_1_4 /rt.sas