[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: globstar syntax
From: |
Sebastian Kapfer |
Subject: |
Re: globstar syntax |
Date: |
Wed, 21 Jan 2009 02:48:30 +0100 |
Am Montag, den 19.01.2009, 10:14 -0800 schrieb Alex Reed:
> Should the globstar (**) syntax allow for partial parameter matching
> (i.e. **.c to find all *.c files in the current directory and its sub-
> directories)?
>
> Currently this can be implemented like this:
> for i in **; do if [[ ${i} =~ \.c$ ]]; then <my_operation>; fi; done
Huh?
So what's the difference between the following two lines
echo **
echo `find`
Quoting?
--
Best Regards, | Hi! I'm a .signature virus. Copy me into
Sebastian | your ~/.signature to help me spread!