4 ms·
I have to say, I love that default behaviour. Too many newer command line programms need some obscure option to make them write to stdout. Some let you replace
by cyborgx7 10y ago
I have to say, I love that default behaviour. Too many newer command line programms need some obscure option to make them write to stdout. Some let you replace the filename with a dash but too many of them don't follow that standard, so that I still have to open the manpage to get them to do what really should be the default behaviour. And it's perfect for my usecase, which mostly involves piping the result into other command line utilities like sed or grep in shell scripts.
- d33 10y agoIf any program doesn't use - to let you write to stdout, just use /dev/stdout. It's usually going to work unless there's a check whether it's a regular file or unless program tries to seek (e.g. compression programs).