![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
yangjun2
其实天很蓝,阴云总要散;其实海不宽,此岸连彼岸;其实梦很浅,万物皆自然;其实泪也甜,当你心如愿;其实我要你,快乐每一天。
展开
-
linux 批处理带空格文件
写下载PT种子文件脚本时,发觉种子是带空格的。google了一些资料,可以通过修改shell的分隔符来处理。 #!/bin/sh files=` find . -type f -name '*.txt' ` ifs=$IFS IFS=$"\n" for file in $files ; do echo "$file"done IFS=$ifs结果:原创 2011-10-31 11:30:21 · 974 阅读 · 0 评论 -
整理文件比较的Shell脚本
问题如何对不同环境生成的文件进行比较?方案通过对文件进行消息摘要计算,例如MD5,SHA-1,通过比较摘要来判断文件的一致性脚本md5sum例子,生成文件对应的md5码 $ls *.jarweblogic.jar wlclient.jar$ md5sum *.jar >> mymd5result.txt$cat mymd5result.txt c97f8d9aae6ed原创 2012-10-17 12:41:31 · 3367 阅读 · 0 评论