How can I chop off everything but the first five lines using a bash pipe? For example:
cat file.txt | truncate 5
would only print the first five lines. Ideas?
您需要head
命令。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.