I have 100 files, n1.txt, n2.txt,… and I want to gzip each of them, but not in one file – finally I'd like to have 100 n*.txt.gz files.
How can I do that in Linux with Bash?
To compress all files, you can use:
The n*.txt will expand to all file names as arguments for gzip.
3 years ago