Solved

Zip multiple files

Posted on 2011-03-23
2
349 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
ID: 35204678
zip filename.zip *_????_????.*

Open in new window

0
 

Author Comment

by:sanpradeep
ID: 35205169
Thanks..
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

808 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