[Nottingham] "unescaping" the wildcard character for xargs

Camilo Mesias camilo at mesias.co.uk
Tue Jun 19 13:03:02 UTC 2012


I'm guessing you haven't had to use 'glob' before. It's a bash feature that
will re expand for you. Try piping through glob before xargs and all should
be well.
On Jun 19, 2012 1:28 PM, "Martin" <martin at ml1.co.uk> wrote:

> On 19/06/12 13:19, Rory Holland wrote:
> > That's what I've since discovered.
> >
> > I'm rewriting in Python, frankly
>
> I've just been blundering through a few "wild ones" with bash for
> something that I thought would be trivially simple and ideal for piped
> processing. Unfortunately, the ease and elegance got completely undone
> by some rather irksome quirkiness lingering from decades ago... The end
> result works fine, but it is far from neat or elegant. Worse still, the
> code is far from 'obvious' due to too many quirks hidden behind must-use
> command flags.
>
> Perhaps some of the gnu tools need a tidy-up after 30 years! (With some
> care to maintain backwards compatibility...)
>
> More on that later...
>
>
> Cheers,
> Martin
>
> --
> - ------------------ - ----------------------------------------
> -    Martin Lomas    - OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7
> - martin @ ml1 co uk - Import from   hkp://subkeys.pgp.net   or
> - ------------------ - http:// ml1 .co .uk/martin_ml1_co_uk.gpg
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20120619/5869420b/attachment.htm>


More information about the Nottingham mailing list