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

> wc -> cw

Googling that i get:

cw - sound characters as Morse code on the soundcard or console speaker.

Must be a pretty obscure replacement when all the google results are for a different unix program. Unless im missing the joke.

As an aside, bat really sounds like its replacing less not cat.



`cw` repo is https://github.com/Freaky/cw

`bat` is definitely a `cat` replacement as it has the essential functionality of concatenating files. The automatic paging is only for printing to standard output and it doesn't meddle with this functionality.

By the way, zsh built-in pager (invoked with `<`) has this behavior. It prints output to display but it pipes it to an actual pager if size is large.


> zsh built-in pager (invoked with `<`)

Huh, I did not know about this. Thank you!


> As an aside, bat really sounds like its replacing less not cat.

You have to alias cat='bat --paging=never' for it to replace cat.


I think it's enough that you invoke it outside of a tty output (e.g. with a redirection to a file) and it will behave like cat.


> As an aside, bat really sounds like its replacing less not cat.

In a literal sense, yes. But for what 99% of what people use cat for (viewing files), bat is a great substitute.




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

Search: