摘要: #!/bin/bash for file in *.txt;do echo $file done for file in *.txt;do { cat $file >>all.txt } done line=$(cat all.txt|sed -n '$=') cat all.tx... 阅读全文
posted @ 2017-08-12 14:12 soyosuyang 阅读(120) 评论(0) 推荐(0)
摘要: #!/bin/bash #soyo1.sh #FILE=$1 NUM=$1 #cat $1 | sed -n "1,${NUM}p" for file in *.txt;do echo $file done for file in *.txt;do { cat $file | sed -n "1,${NUM... 阅读全文
posted @ 2017-08-12 12:55 soyosuyang 阅读(92) 评论(0) 推荐(0)
摘要: #!/bin/bash for file in *.txt;do echo $file done for file in *.txt;do cat $file >>all.txt done 阅读全文
posted @ 2017-08-12 12:52 soyosuyang 阅读(104) 评论(0) 推荐(0)