The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
shell scripting
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
shell scripting
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
09-11-2008
kaustav_pal
Registered User
Join Date: Mar 2008
Location: Kolkata, India
Posts: 4
well put all the matching patterns in single file say
pattern.dat
then you can use following
Quote:
cat pattern.dat
sample.gz
sample1.gz
grep -f pattern.dat source_file
you can manipulate contents of
pattern.dat
and get matchings accordingly
kaustav_pal
View Public Profile
Find all posts by kaustav_pal
Find kaustav_pal's past nominations received
Find kaustav_pal's present nominations given