troubleshooting Question

Using gunzip and find command together

Avatar of Andys1
Andys1 asked on
PerlPHPSystem Programming
3 Comments1 Solution1277 ViewsLast Modified:
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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros