Re:Useful one-line scripts for sed (2005)
by majewsky on Thursday June 08, 2017 @04:47AM
(#14512842)
I use stuff like that all the time with config files where sections span multiple lines. For example, if ~/.ssh/config has a section like
Then the following selects the identity file:
Although I would probably use awk after sed because it handled space-separated fields nicer:
[ Parent
| on HN ]
There are no comments on this comment yet.