Solved

Zip multiple files

Posted on 2011-03-23
2
347 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 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 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…

914 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

17 Experts available now in Live!

Get 1:1 Help Now