/ Published in: Bash
![](/img/icon_sav.png?v3)
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# show from line 12 to line 23 sed -n '12,23 p' archivo.txt # or just one (line 15) sed -n 15p archivo.txt
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)