GZip every file separately

前端 未结 6 1580
囚心锁ツ
囚心锁ツ 2020-12-13 17:40

How can we GZip every file separately?

I don\'t want to have all of the files in a big tar.

6条回答
  •  情歌与酒
    2020-12-13 18:12

    Easy and very fast answer that will use all your CPU cores in parallel:

    parallel gzip ::: *
    

    GNU Parallel is a fantastic tool that should be used far more in this world where CPUs are only getting more cores rather than more speed. There are loads of examples that we would all do well to take 10 minutes to read... here

提交回复
热议问题