![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux shell
kakaximodo
Learn to share
展开
-
linux脚本设计,写的很清晰
原文链接 http://www.arachnoid.com/linux/shell_programming.htmlRevised 3/2006Bash what?Okay, I grant that this page might represent a leap from the familiar to the alien without much warning. Here转载 2012-05-29 22:40:13 · 1189 阅读 · 0 评论 -
使用linux shell修改文本
1,提高脚本的稳健性能 首先检查所要修改的文件是否存在。如果不存在...视应用场景适配。如果存在,继续脚本的执行。这里主要用到find命令,如果解释器是CSH,可以这样写 set file_name = `find 路径 -name 文件名` if ( $file_name != "文件名") then ... endif 如果解释器是B原创 2012-06-05 08:09:29 · 4292 阅读 · 0 评论