0

To estract a single .Z file from a given folder I use uncompress file.Z in a terminal and it works flawlessy. If, in the same folder, I want to extract all the .Z files I use uncompress "*.Z" or uncompress '*.Z' or uncompress \*.Z. But they all give the same error:

`gzip: *.Z: No such file or directory`

Same story if I use the "extended" extension proper of each file, that is file.fitz.Z. How do I uncompress all the .Z files? What is going wrong?

Py-ser
  • 1,860
  • 9
  • 32
  • 58
  • Why are you using various forms of quotes in your command lines around the `*.Z` glob? Perhaps see: https://unix.stackexchange.com/questions/67757/wildcards-inside-quotes – Zalman Stern Dec 20 '17 at 17:26
  • I was using different forms of quotes because I suspected that could be the problem, but in fact it is not. – Py-ser Dec 20 '17 at 17:28

1 Answers1

0

From the answer on U&L, it simply works as:

uncompress *.Z

because all the quotes I have tried escape the * character, causing it to be interpreted literally instead of as a wildcard.

Py-ser
  • 1,860
  • 9
  • 32
  • 58