#!/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.txt >>all${line}个流.txt
时间: 2024-10-18 19:27:30
#!/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.txt >>all${line}个流.txt