linux删除大文件的前n行

2019-08-20  本文已影响0人  木脑

tail -n +3 old_file > new_file
mv new_file old_file
这样就删除了前2行,速度要比sed命令快

上一篇 下一篇

猜你喜欢

热点阅读