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 any *.cache-2 files in your directory. Next, try >this: > >$ 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 a.cache-2] and [ -f b.cache-2 ] should have the value: true. My issue is: how can I grab this value, say, by using echo command? Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/