[TUHS] Origins of globbing

arnold at skeeve.com arnold at skeeve.com
Wed Oct 7 19:22:30 AEST 2020


George Michaelson <ggm at algebras.org> wrote:

> Possibly wrongly, I judge glob by things like how simple it is, to use
> it doing "rename *.foo to *.bar" or "find filenames with spaces in
> them, and rename to be - separated"
>
> The problem typically is shell expansion. Those damn quoted quotes.
>
> I think set noglob; <do things>; set glob is often under-appreciated.

I often use a 

	find ... | sed 's/whatever/mv & other/' | sh -x

for fancy things like that. If I'm doing the same operation a lot,
I wrap it in a script.

HTH,

Arnold


More information about the TUHS mailing list