Solved

Zip multiple files

Posted on 2011-03-23
2
345 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 50 total points
Comment Utility
zip filename.zip *_????_????.*

Open in new window

0
 

Author Comment

by:sanpradeep
Comment Utility
Thanks..
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now