The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell scripting sreejith SUN Solaris 2 10-08-2006 09:38 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 08:12 AM
Help on SED AWK in shell scripting kaushys Shell Programming and Scripting 3 03-09-2006 02:40 PM
Shell scripting sendhil Shell Programming and Scripting 1 02-14-2006 12:16 PM
Shell scripting dipanrc Shell Programming and Scripting 4 10-27-2005 03:53 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2008
subhendu81 subhendu81 is offline
Registered User
  
 

Join Date: Sep 2008
Location: mumbai
Posts: 78
Quote:
Originally Posted by subhendu81 View Post
my requirement are:

1.i have to find the zip files from the file
2.unzip all the files
3.again save the unzipfiles with absolute path which is defined in that file.


how can i make pattern file for file containing morethan 30000 records....its not possible

can u plz tell me in details...
hi experts,
how can i separate the files contaiing several lines as
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample1.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample2.gz
...
...

i mean i want 2 cut the files sample.gz and sample1.gz and redirect them into an output file.


my requirement are:

1.i have to find the zip files from the file
2.unzip all the files
3.again save the unzipfiles with absolute path which is defined in that file.
  #2 (permalink)  
Old 09-11-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Code:
grep '\.gz$' file |
while read match; do
  gzip -d "$match"
  # unclear what you mean by "absolute path which is defined in that file" ...
  # defined how, in which file?
done

Last edited by era; 09-11-2008 at 07:11 AM.. Reason: Break overlong comment over two lines
  #3 (permalink)  
Old 09-11-2008
subhendu81 subhendu81 is offline
Registered User
  
 

Join Date: Sep 2008
Location: mumbai
Posts: 78
hi,
how can i separate the files contaiing several lines as
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample1.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample2.gz
...
...

i mean i want 2 cut the files sample.gz and sample1.gz and redirect them into an output file.


my requirement are:

1.i have to find the zip files from the file
2.unzip all the files
3.again save the unzipfiles with absolute path which is defined in that file.
  #4 (permalink)  
Old 09-11-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,307
It's not alllowed to bump questions!

Please read our rules.
  #5 (permalink)  
Old 09-11-2008
subhendu81 subhendu81 is offline
Registered User
  
 

Join Date: Sep 2008
Location: mumbai
Posts: 78
That is not working......
  #6 (permalink)  
Old 09-11-2008
subhendu81 subhendu81 is offline
Registered User
  
 

Join Date: Sep 2008
Location: mumbai
Posts: 78
k...ll tk care of that
  #7 (permalink)  
Old 09-11-2008
subhendu81 subhendu81 is offline
Registered User
  
 

Join Date: Sep 2008
Location: mumbai
Posts: 78
i m writting th requirement in detail...

so posting the query in this way..

hi,
how can i separate the files contaiing several lines as
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample1.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample2.gz
...
...

i mean i want 2 cut the files sample.gz and sample1.gz and redirect them into an output file.


my requirement are:

1.i have to find the zip files from the file
2.unzip all the files
3.again save the unzipfiles with absolute path which is defined in that file.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0