How to follow (a la “tail -f”) a binary file from the beginning

binarytailtext processing

Is it possible to follow a binary file from the beginning, a la tail -f?

This is useful in some cases, for example if I'm scping a file to a remote server, and at the same time I want to feed it to another process (yes, I know I can use ssh+cat tricks).

As far as I read from the FM, tail is written having text files in mind.

Is there any simple way of doing such operations using standard posix tools?

Best Answer

tail works with binary data just as well as with text. If you want to start at the very beginning of the file, you can use tail -c +1 -f.