Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In what way? Ed is interactive so you’d be able to act out your script line by line and check for mistakes, which seems easier to me. If you’re cognizant about the differences between ed and ex, you could even debug with vi.


Hum... I was thinking on the lines of debugging an entire shell script. Sed has way more output options.

For a single edition script (one shell command), yeah, I'd say there is no large difference.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: