[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Zip multiple files

Posted on 2011-03-23
2
Medium Priority
?
359 Views
Last Modified: 2012-06-27
I have few reports generated by my script. The names have a common tag "MMDD_HH24MI". For eg: file1_0324_1036.html, file2_0324_1036.txt etc.
I need to zip all the generated files in the same location using unix commands.
0
Comment
Question by:sanpradeep
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 200 total points
ID: 35204678
zip filename.zip *_????_????.*

Open in new window

0
 

Author Comment

by:sanpradeep
ID: 35205169
Thanks..
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question