摘要:
#!/bin/bash # 一次性处理git提交 #branch_name=`git symbolic-ref --short -q HEAD` branch_name=$(git symbolic-ref --short -q HEAD) if [ ! -n "$1" ] ;then commit 阅读全文
摘要:
1、sed与grep配合 格式: sed -i "s/查找字段/替换字段/g" grep 查找字段 -rl 路径 或者 grep -rl 查找字段 路径|xargs sed -i "s/查找字段/替换字段/g" grep -r 指定目录递归查找 实例: sed -i "s/oldstring/new 阅读全文