![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
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. |
|
||||
|
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 |
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|