I prefer less until I find myself using less over and over again until I finally use cat so that I can just scroll up and review whatever I’m looking for.
Is it the best or right way to do things? Nope, but it gets the job done just as good as anything else I do.
And, it goes without saying, I do a terrible job of all of it.
The subtle difference is that your $SHELL is responsible for opening (and, iirc, parsing?) the file when you use \<, versus the $EDITOR being the responsible entity.
I prefer
| lessorless file.txtbecause I can search interactivelyThis is just big small trying to sell more
less, obviously.I prefer
lessuntil I find myself usinglessover and over again until I finally usecatso that I can just scroll up and review whatever I’m looking for.Is it the best or right way to do things? Nope, but it gets the job done just as good as anything else I do.
And, it goes without saying, I do a terrible job of all of it.
what about
$EDITOR <(cat file)?Well, when I can just do
$EDITOR file…The subtle difference is that your $SHELL is responsible for opening (and, iirc, parsing?) the file when you use
\<, versus the $EDITOR being the responsible entity.Oh I get it now.
Also, for some reason setting
vias$EDITOR, it is not able to load the contents of the file, unlikevimthat does.we’re talking about a pipeline(-ish) thing here.
so just out the cmd that you want to read the output of in the brackets