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.
我试过头+10,但没有用。
您是否尝试过 head 的手册页?
head -n 10 filename
Head 是一个很好的工具,但您也可以尝试:
sed 10q 路径
对于代码高尔夫狂热者来说,sed 总是比 head 好:)