On Tue, Apr 05, 2005 at 05:26:15PM +0200, Florent Rougon wrote:
> Justin Pryzby <[EMAIL PROTECTED]> wrote:
> 
> > Note that there was a relevant thread on -devel around about last
> > October.  Someone complained that their thesis was in /var/log/apache/
> > and was deleted when they purged the package.  As such, you might
> > consider something like rm -f /var/log/apache/{access,error}.log*;
> 
> Warning: this type of globbing is not supported by the POSIX shell.
> Therefore, it is not suitable for /bin/sh. You can write a for loop, or

Good solution.

> use "#! /bin/bash".

Less good solution...

In this case, with only 2 different alternatives, the best solution
would probably be:

rm -f /var/log/apache/access.log* /var/log/apache/error.log*


Regards: David Weinehall
-- 
 /) David Weinehall <[EMAIL PROTECTED]> /) Rime on my window           (\
//  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   //  Diamond-white roses of fire //
\)  http://www.acc.umu.se/~tao/    (/   Beautiful hoar-frost       (/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to