I tried tailing two files using the option:
tail -0f file1.log -0f file2.log
In Linux I see an error "tail : can process only one file at a time".
In AIX I see the error as "Invalid options".
This works fine when I use:
tail -f file1 -f file 2
in Linux but not in AIX.
I want to be able to tail multiple files using -0f
or -f
in AIX/Linux
multitail
is not recognized in either of these OS.
Best Answer
What about:
Or prefixing each line with the name of the file:
To follow all the files whose name match a pattern, you could implement the
tail -f
(which reads from the file every second continuously) with azsh
script like:Then for instance, to follow all the text files in the current directory recursively: