moveifchange
来自「gcc-2.95.3 Linux下最常用的C编译器」· 代码 · 共 20 行
TXT
20 行
# Rename a file only if it is different from a previously existing# file of the same name. This is useful for keeping make from doing# too much work if the contents of a file haven't changed.# This is an MPW translation of the standard GNU sh script move-if-change.Set exit 0If "`exists -f "{2}"`" Compare "{1}" "{2}" >dev:null If {status} != 0 Rename -y "{1}" "{2}" Else Echo "{2}" is unchanged Delete -i -y "{1}" EndElse Rename -y "{1}" "{2}"End
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?