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 scp
ing 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?
tail
can only be used with text files?tail
didn't always cope with binary files: they might choke on null bytes or omit stray bytes after the last newline in the input files. Modern systems do cope.