The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: arnold@skeeve.com
To: ggm@algebras.org
Cc: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] Origins of globbing
Date: Wed, 07 Oct 2020 03:22:30 -0600	[thread overview]
Message-ID: <202010070922.0979MUD2022625@freefriends.org> (raw)
In-Reply-To: <CAKr6gn37u-SpuEd0Qzo1uLvmnkRO2hjc+=V+HoOF6oF+u6tsFA@mail.gmail.com>

George Michaelson <ggm@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

  reply	other threads:[~2020-10-07  9:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-06  9:53 Tyler Adams
2020-10-06 15:17 ` John Cowan
2020-10-07  2:25   ` Random832
2020-10-07  2:58     ` George Michaelson
2020-10-07  9:22       ` arnold [this message]
2020-10-07  9:45         ` Michael Kjörling
2020-10-08  3:45           ` John Cowan
2020-10-09 18:21             ` Random832
2020-10-08  0:18       ` Dave Horsfall
2020-10-08  0:33         ` Larry McVoy
2020-10-08  2:35         ` Dave Horsfall
2020-10-06 15:44 Noel Chiappa
2020-10-06 23:11 ` George Michaelson
2020-10-06 23:21   ` Jon Steinhart
2020-10-07  0:23     ` Warner Losh
2020-10-07  0:32       ` George Michaelson
2020-10-07  0:33         ` Jon Steinhart
2020-10-07  3:14   ` John Cowan
2021-02-04 21:29     ` Greg A. Woods

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202010070922.0979MUD2022625@freefriends.org \
    --to=arnold@skeeve.com \
    --cc=ggm@algebras.org \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).