随笔分类 -  Linux技术

编写shell脚本遇到的问题
摘要:运行shell脚本提示“syntax error near unexpected token for((i=0;i<$length;i++))”: 原因是因为Linux下的换行符是 \n 而你在secureCRT或者其他工具编写shell脚本的时候,使用的是window下的换行符:\r\n 所以需要 阅读全文
posted @ 2016-08-17 16:40 低调才是王道 阅读(598) 评论(0) 推荐(0)
linux小技巧
摘要:1、删除目录下制定大小的文件 find . -name "*" -type f -size #文件的大小#c | xargs -n 1 rm -f 阅读全文
posted @ 2015-07-13 18:10 低调才是王道 阅读(202) 评论(0) 推荐(0)