4 ms·
No no no, just open your text editor. vipe[1] will soak up a pipe, open your editor, and write the final file to stdout. Something like bat is the opposite of U
by Sir_Cmpwn 8y ago
No no no, just open your text editor. vipe[1] will soak up a pipe, open your editor, and write the final file to stdout. Something like bat is the opposite of Unix.
[1] https://joeyh.name/code/moreutils/ https://joeyh.name/code/moreutils/
If this was just "pipe text into me and I'll print it out with syntax highlighted ANSI codes" then I'd be all for it. As a cat replacement this is nonsense.
- splatzone 8y agoI could see this being really handy for viewing source files on remote servers (I prefer to use Sublime normally) What do you mean when you say this the opposite of unix, and why is it a bad thing?
- spiffistan 8y agoSee: https://en.wikipedia.org/wiki/Unix_philosophy https://en.wikipedia.org/wiki/Unix_philosophy
- splatzone 8y agoThanks, I am aware of the unix philosophy but I’m not sure how bat contravenes it; it seems like you can use it non-interactively and use its output with other programs, and it performs one task (outputting files with syntax highlighting). Am I missing something?
- mdekkers 8y agoNo? Looks neat and very useful to me.