Hello,
I want to create separate gunzip files for every year from the all available files in the directory.
File extension starts with YYYYMMDD.tsv. Can anyone please help create te command?
Files would be
20070330.tsv
20070427.tsv
20070531.tsv
20070629.tsv
20070731.tsv
20070831.tsv
20070928.tsv
20071031.tsv
20071130.tsv
20071228.tsv
20080131.tsv
20080229.tsv
20080331.tsv
20080430.tsv
20080530.tsv
20080630.tsv
20080731.tsv
20080829.tsv
20080930.tsv
20081031.tsv
20081128.tsv
20081230.tsv
Output files taht I am looking for is
2008.gz
2007.gz, etc.
Thank you.
Start Free Trial