Skip to content

Instantly share code, notes, and snippets.

@xhsdnn
Last active May 16, 2020 15:39
Show Gist options
  • Save xhsdnn/042f03176a77fc217c026af6e34c6914 to your computer and use it in GitHub Desktop.
Save xhsdnn/042f03176a77fc217c026af6e34c6914 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euxo pipefail # 抛出异常
dd # 删除一行
yy # 复制一行
p # 粘贴
cp Filename newFilename # 复制文件
ctrl+d # 向下翻半页
echo $diff_info | awk -F "[version]" '{print $0}'
-eq # 等于,如:if [ "$a" -eq "$b" ]
-ne # 不等于,如:if [ "$a" -ne "$b" ]
-gt # 大于,如:if [ "$a" -gt "$b" ]
-ge # 大于等于,如:if [ "$a" -ge "$b" ]
-lt # 小于,如:if [ "$a" -lt "$b" ]
-le # 小于等于,如:if [ "$a" -le "$b" ]
< # 小于(需要双括号),如:(("$a" < "$b"))
<= # 小于等于(需要双括号),如:(("$a" <= "$b"))
> # 大于(需要双括号),如:(("$a" > "$b"))
>= # 大于等于(需要双括号),如:(("$a" >= "$b"))
windows
reg /? #操作注册表(提示很清晰)
reg query /? #查询
reg add /? #添加/修改
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment