Sample Header Ad - 728x90

Show filename at begining of each line when tailing multiple files at once?

24 votes
6 answers
26641 views
when tailing multiple files at once as shown below, is any there any way to show the file name at the start of each line? tail -f one.log two.log current output ==> one.log two.log <== contents of one.log here... contents of two.log here.. Looking for something like one.log: contents of one.log here... one.log: contents of one.log here... two.log: contents of two.log here... two.log: contents of two.log here...
Asked by mtk (28468 rep)
Apr 13, 2015, 09:44 AM
Last activity: Jun 24, 2024, 08:07 PM