[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: logrotation



On Tue, May 18, 1999 at 02:50:22PM +0100, Robert Collier wrote:
> On Tue, May 18, 1999 at 03:12:07PM +0200, Paul Slootman wrote:
> 
> > I find the ".log" extension redundant here. After all, it's a
> > log directory, right?  It's like having /bin/ls.bin ... Reminds me
> > of .exe extensions too much.
> 
> But, it is very usefull in that it allows one to do:
> 
> 	cd /var/log
> 	tail -f *.log
> 
> ie. tail all logfiles, until shell expansion allows me to tail
> everything except *.gz haveing a common extension is usefull.

(bash)

        shopt -s extglob
        tail -f !(*.gz)

-- 
Conrad Parker  conradp@cse.unsw.edu.au
               http://www.cse.unsw.edu.au/~conradp/


Reply to: