Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
u801e
on Aug 23, 2021
|
parent
|
context
|
favorite
| on:
Bringing the Unix philosophy to the 21st century (...
True, but if the file isn't that big, then the difference isn't noticable.
Being able to do something like
/some string/-2 d
Which deletes a line 2 lines above where some string matched is something that's trivial to do in ed, but takes a bit of work in sed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Being able to do something like
Which deletes a line 2 lines above where some string matched is something that's trivial to do in ed, but takes a bit of work in sed.