a command to get the lines around a specific line of a text file
- by sanjan
I'm looking for a command to get text around a specific line of a file.
ex:
file content:
a
b
c
d
e
f
g
h
i
j
a command like:
]$ commandname -text f -lines 3
giving the output
c
d
e
f
g
h
i