Skip to content

Comment on Bat v0.26.0parent

Comments

From my experience, --output is a minority in my workflow. Which tools do you use need --output?

Coincidentally, I went looking for some the other day and there were very few. Everything that uses --output for this purpose, that I could find, was a compiler.

dd an company require if= and of=, if that counts

dd doesn't require either if= or of=. It'll read from stdin (or pipe) if you omit if= and it'll write to stdout happily if you omit of=.

From the man page:

    if=FILE - read from FILE instead of stdin.
    of=FILE -  write to FILE instead of stdout.
So you can do:
   cat x.iso | dd oflag=direct bs=4096kB | /dev/sdc
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.