Reclaim the terminal
14 points by nishantjosh
14 points by nishantjosh
Nice post! This led to me discovering vipe. This is an npm package, but it also exists in moreutils. In a line, it allows you to modify the interim input/output of a pipeline stage with your editor of choice. As a pointless example with much better ways of doing it: cat somefile.txt | vipe > somefile2.txt.
Anyone come across vipe in the past? Or use if as part of their standard command line toolkit?
I found this an incredible enlightening read! I did wonder for a while how the Ctrl-C signal actually happened, but I never stopped to think about how less did the interactive trick. It's useful to know for my own scripts as well!