linux 下查看指定行100,200行的文件
三种办法:sed、awk、head
sed -n '100,200p' inputfile
awk 'NR>=100&&NR<=200{print}' inputfile
head -200 inputfile|tail -100
学之如大海汪洋,薄积厚发,后发制人,大学之道也。
三种办法:sed、awk、head
sed -n '100,200p' inputfile
awk 'NR>=100&&NR<=200{print}' inputfile
head -200 inputfile|tail -100