Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个程序在输出中显示多行
我怎样才能让它显示除前两行之外的所有输出?
轻松使用tail命令:
tail -n+3
你可以使用awk
awk
awk 'NR>2' file
为了完成三连,
sed '1,2d' file