📌  相关文章
📜  bash 从文件中打印特定范围的行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:04.996000             🧑  作者: Mango

代码示例1
# Basic syntax with sed:
sed -n 'start,endp' input_file.txt
# Where start and end are numbers that inclusively define the range. E.g.
sed -n '17,23p' input_file.txt # To print the [17-23] rows