On Fri, Feb 20, 2026 at 14:53:19 +0100, Nicolas George wrote:
> Chime Hart (HE12026-02-20):
> > And speaking of wild-cards, unzip will not handle them
>
> Just checked, it absolutely handles them. ? will let it extract files
> named a and b but not cd.
Confirmed:
hobbit:~$ cd /tmp
hobbit:/tmp$ touch 1.foo 2.foo 1.bar 2.bar
hobbit:/tmp$ zip foobar.zip *.foo *.bar
adding: 1.foo (stored 0%)
adding: 2.foo (stored 0%)
adding: 1.bar (stored 0%)
adding: 2.bar (stored 0%)
hobbit:/tmp$ unzip -v foobar.zip '*.foo'
Archive: foobar.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
0 Stored 0 0% 2026-02-20 08:54 00000000 1.foo
0 Stored 0 0% 2026-02-20 08:54 00000000 2.foo
-------- ------- --- -------
0 0 0% 2 files
hobbit:/tmp$ unzip -v foobar.zip '1.*'
Archive: foobar.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
0 Stored 0 0% 2026-02-20 08:54 00000000 1.foo
0 Stored 0 0% 2026-02-20 08:54 00000000 1.bar
-------- ------- --- -------
0 0 0% 2 files