标签:哎打分打分
/bin/sed -i "s@DEPLOY_DIR=.*@DEPLOY_DIR=/home/web/$PROJECT@" /home/git/bmw/si.git/hooks/post-receive
匹配post-receeive文件下的DEPLOY_DIR=字符更改为DEPLOY_DIR=/home/web/$PROJECT
/bin/sed -n "/DEPLOY_DIR/p" file 文件
查询打印字符
sed
-i
‘88 r b.file‘
a.
file
#在a.txt的第88行插入文件b.txt
awk
‘1;NR==88{system("cat b.file")}‘
a.
file
> a.
file
本文出自 “仁龙” 博客,请务必保留此出处http://8934920.blog.51cto.com/8924920/1919685
标签:哎打分打分
原文地址:http://8934920.blog.51cto.com/8924920/1919685