Advertisement

05.27.2008 at 05:31PM PDT, ID: 23436767
[x]
Attachment Details

Using gunzip and find command together

Asked by Andys1 in Perl Programming Language, Unix Systems Programming, PHP and Databases

Tags: unix linux, solaris, www.experts-exchange.com

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
 
Keywords: Using gunzip and find command together
 
Loading Advertisement...
 
[+][-]05.27.2008 at 05:49PM PDT, ID: 21656885

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Unix Systems Programming, PHP and Databases
Tags: unix linux, solaris, www.experts-exchange.com
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.27.2008 at 06:06PM PDT, ID: 21656945

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 06:31PM PDT, ID: 21657048

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628