You can also use this command
ls -et | grep "^-" | awk '{print$9}' | xargs -t -I {} cp {} backup
By using this command only the files will copy into backup directory.
Khalid Mahmood
Try to use the following, hope it will solve your problem.
WORKING-STORAGE SECTION.
01 WS-COMMAND-LINE.
03 WS-COMMAND-COM PIC X(25) VALUE "/test/glint/glint.sh ".
03 F PIC X(04) VALUE " " & X"00".
PROCEDURE DIVISION.
CALL...
Try to use the following, hope it will solve your problem.
WORKING-STORAGE SECTION.
01 WS-COMMAND-LINE.
03 WS-COMMAND-COM PIC X(25) VALUE "/test/glint/glint.sh ".
03 F PIC X(04) VALUE " " & X"00".
PROCEDURE DIVISION.
CALL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.