touchvi - restores the original datestamp on a file after editing it
1.3 - 2008/01/21 20:51:50
touchvi [-e cmd [-d]] [-x]* [-X]*
Q&D script to touch a temp file before editing the named file, then
touching the newly modified file referencing the temp file to reset the datestamp.
-d diff the before and after files (-e only) -e cmd instead of interactively editing a file, perform an edit operation on it, where cmd is:
delcr - delete carriage return characters
cr2nl - change carriage return characters to newline characters
-x does set -x (may be used in functions and external script calls) (see DIAGNOSTICS below) -X sets debugging level--the number of times -X is specified" (see DIAGNOSTICS below)
$Id: touchvi,v 1.3 2008/01/21 20:51:50 earneson Exp $
$Author: earneson $
$Date: 2008/01/21 20:51:50 $
$Revision: 1.3 $
$Source: /Users/cvs/scripts/all/Users/earneson/bin/touchvi,v $
$State: Exp $
rwxr-xr-x userUID staff
40 - The localize script could not be found. Global machine settings can not be set.
51 - An unknown option was passed to the script, or syntax of the parameters is wrong.
51 - Unknown option >$errflag<
52 - Unknown edit command >$ecmd<
53 - The file >$1< is not writable and, hence, can not be edited.
54 - The generated file >$1.$tmpstr< is too small. A script error probably occurred and the original file will not be overwritten.
56 - The USAGE was requested using -z or -?.
|\\$4||touchvi (1)||EJA UTILITY|