Re: [LAU] Basic Bash/Find and batch CLI questions.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kaza Kore <dj_kaza@...>
Cc: linux-audio-user@lists.linuxaudio.org <linux-audio-user@...>
Date: Sunday, March 23, 2014 - 1:00 pm

Kaza Kore wrote:

The type argument is a filter.

> find is not actually being used for any searching, just to recursively send all folders, right?

The default action is to print what has been found.
With -exec, the specified program is executed for each found item.

> I don't understand the bit after the exec call

{} is the file name, ; ends the command to be executed.

> $ find -iname *wey*

The shell expands *wey* into multiple arguments, but -iname expects only one.
It worked in the parent directory because *wey* could not be expanded there.

To prevent expansion, quote it:

$ find . -iname '*wey*'

Regards,
Clemens
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Basic Bash/Find and batch CLI questions., Kaza Kore, (Sun Mar 23, 6:25 am)
Re: [LAU] Basic Bash/Find and batch CLI questions., Clemens Ladisch, (Sun Mar 23, 1:00 pm)
Re: [LAU] Basic Bash/Find and batch CLI questions., Kaza Kore, (Sun Mar 23, 1:50 pm)
Re: [LAU] Basic Bash/Find and batch CLI questions., James Mckernon, (Sun Mar 23, 11:18 am)
Re: [LAU] Basic Bash/Find and batch CLI questions., James Morris, (Sun Mar 23, 10:19 am)