On Fri, 09 Jan 2009 07:36:26 -0700, Eric Blake e...@byu.net wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Hongyi Zhao on 1/9/2009 6:38 AM:
But I cann't figure this out, see the following results on my box:
$ echo [ -f *.cache-2 ]
[ -f *.cache-2 ]
That means there aren't
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Hongyi Zhao on 1/10/2009 3:05 AM:
$ touch a.cache-2 b.cache-2
$ echo [ -f *.cache-2 ]
[ -f a.cache-2 b.cache-2 ]
In your example, considering that the a.cache-2 and b.cache-2 have
been created by touch command, both the [ -f
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Hongyi Zhao on 1/8/2009 8:55 PM:
if [ -f *.cache-2 ] rm *.cache-2
But it seems that this -f parameter in the _if_ command will not work
with wildcard, i.e., the _[ -f *.cache-2 ]_ isn't a valid arg. Any
hints on this issue?
Not
On Fri, 09 Jan 2009 06:12:27 -0700, Eric Blake e...@byu.net wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Hongyi Zhao on 1/8/2009 8:55 PM:
if [ -f *.cache-2 ] rm *.cache-2
But it seems that this -f parameter in the _if_ command will not work
with wildcard, i.e., the _[
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Hongyi Zhao on 1/9/2009 6:38 AM:
But I cann't figure this out, see the following results on my box:
$ echo [ -f *.cache-2 ]
[ -f *.cache-2 ]
That means there aren't any *.cache-2 files in your directory. Next, try
this:
$ touch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hongyi Zhao wrote:
I want to delete the all of the cache-2 files under a directory, so I
use the following line to do this:
if [ -f *.cache-2 ] rm *.cache-2
But it seems that this -f parameter in the _if_ command will not work
with
On Thu, 08 Jan 2009 22:01:26 -0600, Yaakov (Cygwin/X)
yselkow...@users.sourceforge.net wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hongyi Zhao wrote:
I want to delete the all of the cache-2 files under a directory, so I
use the following line to do this:
if [ -f *.cache-2 ] rm
On Fri, Jan 09, 2009 at 11:55:46AM +0800, Hongyi Zhao wrote:
Hi all,
I want to delete the all of the cache-2 files under a directory, so I
use the following line to do this:
if [ -f *.cache-2 ] rm *.cache-2
But it seems that this -f parameter in the _if_ command will not work
with wildcard,
On Fri, 9 Jan 2009 00:42:21 -0500, Christopher Faylor
cgf-use-the-mailinglist-ple...@cygwin.com wrote:
On Fri, Jan 09, 2009 at 11:55:46AM +0800, Hongyi Zhao wrote:
Hi all,
I want to delete the all of the cache-2 files under a directory, so I
use the following line to do this:
if [ -f *.cache-2
9 matches
Mail list logo