New Script Example in response to Issue #120

This commit is contained in:
Patrick Kloepfer 2019-11-16 10:14:55 -05:00
parent fe861c5179
commit ee1dce2ce6

26
EXAMPLES/TOUCH.txt Normal file
View File

@ -0,0 +1,26 @@
NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# This script touchs a file or directory
#
#
SET TOUCHFILE = $1
IF [ -D $TOUCHFILE ]
# Touch a Direcory
ECHO -N "" > ${TOUCHFILE}/TMPTOUCHFILE
RM -Q ${TOUCHFILE}/TMPTOUCHFILE
ELSE
IF [ -F $TOUCHFILE ]
# Touch an existing File
CP -Q ${TOUCHFILE} TMPTOUCHFILE
CP -Q TMPTOUCHFILE ${TOUCHFILE}
RM -Q TMPTOUCHFILE
ELSE
# Create New Empty File
ECHO -N "" > ${TOUCHFILE}
FI
FI
MAN
TEXT /MAKE/USR/SHARE/EXAMPLES/TOUCH