相关疑难解决方法(0)

使用bash读取文本文件中的行的子集

我有一个文件

line a - this is line a
line b - this is line b
line c - this is line c
line d - this is line d
line e - this is line e
Run Code Online (Sandbox Code Playgroud)

问题是:如何使用bash命令输出从"line b"开始直到"line d"的行?我的意思是,获得:

"line b - this is line b
 line c - this is line c
 line d - this is line d"
Run Code Online (Sandbox Code Playgroud)

bash

2
推荐指数
1
解决办法
2624
查看次数

标签 统计

bash ×1