- 博客(2)
- 收藏
- 关注
原创 Shell脚本学习
1 在脚本中切换到另一用户执行一条命令或一脚本su – root –c ‘cp /home/wjp/1.sh /root/1.sh’/2 判断上一个命令的执行状态su – root –c ‘cp /home/wjp/1.sh /root/1.sh’while (($? != 0))do echo -e “you enter the wrong root pa
2006-12-24 23:34:00 443
原创 VI使用小技巧
1 替换某一字符串:%s/old_word/new_word/g ——在整个文件中将old_word替换为new_word2 不进入VI编辑器将文件中的某一字符串替换掉sed ‘s/111/aaa/g’ 1.txt > 2.txt ——将1.txt中所有的111替换为aaa,修改后的文件写入2.txtsed ‘s/111/aaa/gp’ 1.txt > 2.txt ——将1
2006-12-23 17:46:00 489
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人