Newsgroups: comp.unix.admin Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!ukma!s.ms.uky.edu!kherron From: kherron@ms.uky.edu (Kenneth Herron) Subject: Re: Multiple tail programme Message-ID: Keywords: tail, file viewing Organization: University Of Kentucky, Dept. of Math Sciences References: <1991Apr30.054042.14998@cheops.qld.tne.oz.au> Distribution: na Date: Wed, 1 May 1991 02:32:07 GMT Lines: 24 colemanm@cheops.qld.tne.oz.au (Mark Coleman) writes: >Sorry if this is a FAQ but I'm looking for a version of 'tail' that allows me >display the updates to files from multiple files. >e.g. $ tail -f #!/bin/sh # mtail -- tail -f on multiple files at once for file in $* do tail -f $file & done exit 0 -------- The ability to specify arguments to the tail calls is left as an excercise for the reader. -- Kenneth Herron kherron@ms.uky.edu University of Kentucky (606) 257-2975 Department of Mathematics "P.S.: Please excuse the lateness of my reply." -- Ringo Starr