Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wildcard expansion vs recursion question

0 views
Skip to first unread message

Chad

unread,
Dec 24, 2009, 7:51:31 PM12/24/09
to
Let's say that I have a bash script that deletes certain file
extensions from a directory after so many days. What would be the
difference in using a wildcard expansion vs doing recursion? When is
it better to use one over the other?

Seebs

unread,
Dec 24, 2009, 7:58:14 PM12/24/09
to

Recursion would delete things in subdirectories.

It's better to use the one that does what you want. :)

-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!

Chad

unread,
Dec 24, 2009, 8:22:15 PM12/24/09
to
On Dec 24, 4:58 pm, Seebs <usenet-nos...@seebs.net> wrote:

> On 2009-12-25, Chad <cdal...@gmail.com> wrote:
>
> > Let's say that I have a bash script that deletes certain file
> > extensions from a directory after so many days. What would be the
> > difference in using a wildcard expansion vs doing recursion?  When is
> > it better to use one over the other?
>
> Recursion would delete things in subdirectories.
>
> It's better to use the one that does what you want.  :)
>

Okay. Got it. Thanks.

0 new messages