摘要: for typefile in $filedir_f_2(文件夹路径) do typefn=$(basename $typefile)// 获取文件名 typeprefix=${typefn:0:10}// 截取字符串 根据实际情况 0:10 进行修改 if [ "$typeprefix" = 'f 阅读全文
posted @ 2016-03-22 13:35 ishizhen 阅读(1479) 评论(0) 推荐(0)
摘要: 例如有个文本文件 1234 ji adfa jiji adfasd qqwe // 注意一定要有个回车,这样脚本才会读到最后一行 阅读全文
posted @ 2016-03-22 13:31 ishizhen 阅读(4068) 评论(0) 推荐(0)
摘要: 最近在用shell脚本进行code 记一下 localip=$(ifconfig | grep 'inet'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}' ) 阅读全文
posted @ 2016-03-22 13:25 ishizhen 阅读(256) 评论(0) 推荐(0)