文件操作 - shell_tricks.rst.txt
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/varnish/html/_sources/reference/shell_tricks.rst.txt
编辑文件内容
.. Copyright (c) 2021 Varnish Software AS SPDX-License-Identifier: BSD-2-Clause See LICENSE file for full text of license .. _ref-shell_tricks: %%%%%%%%%%%% Shell Tricks %%%%%%%%%%%% All the varnish programs can be invoked with the single argument ``--optstring`` to request their `getopt()` specification, which simplifies wrapper scripts: .. code-block:: text optstring=$(varnishfoo --optstring) while getopts "$optstring" opt do case $opt in n) # handle $OPTARG ;; # handle other options *) # ignore unneeded options ;; esac done varnishfoo "$@" # do something with the options
修改文件时间
将文件时间修改为当前时间的前一年
删除文件