随笔分类 - Shell
摘要:#!/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...
阅读全文
摘要:#!/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...
阅读全文
摘要:#!/bin/bash for file in *.txt;do echo $file done for file in *.txt;do cat $file >>all.txt done
阅读全文

浙公网安备 33010602011771号