命令: sed -n '3p' text
2,查找文件text中第二行到第四行的内容
命令: sed -n '2,4p' text
Powered by: 博客园 Copyright © 2025 小翁好 Powered by .NET 9.0 on Kubernetes