Touch
(since EVL 2.7)
Update the access and modification times of each <file> to the current time. Each <file>
argument that does not exist is created empty.
Each <file>
is of the form
[<scheme>://][[<user>@@]<host>[:<port>]]<path> ...
For scheme ‘hdfs://’ it calls function ‘evl_hdfs_touch’, which is by default ‘hdfs dfs -touchz’.
For scheme ‘sftp://’ it calls function ‘evl_sftp_touch’.
Synopsis
Touch <file>...
Options
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- --version
-
print version and exit
Examples
- Simple usage examples:
Touch hdfs:///some/path/ Touch /some/local/machine/path/
- Depends on environment, e.g. ‘PROD’/‘TEST’/‘DEV’, might be useful to be used this
way:
# on DEV: OUTPUT_DIR=/data/output # on PROD: OUTPUT_DIR=hdfs:///data/output
and then in ‘evs’ file:
Touch "$OUTPUT_DIR"