文件操作 - less.sh
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/vim/vim82/macros/less.sh
编辑文件内容
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given and stdin was redirected. if test -t 1; then if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a terminal, cat arguments or stdin if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi cat else cat "$@" fi fi
修改文件时间
将文件时间修改为当前时间的前一年
删除文件