![]() |
|
|
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 |
| copy after grep | finalight | Shell Programming and Scripting | 1 | 05-16-2008 03:37 AM |
| grep problem with the ^ symbol, help needed please. | Gvsumrb | UNIX for Dummies Questions & Answers | 2 | 03-31-2008 11:04 AM |
| Copy files help needed | jakSun8 | Shell Programming and Scripting | 3 | 02-26-2008 10:16 PM |
| Help Needed in Grep Command | ranga27 | UNIX for Advanced & Expert Users | 7 | 09-11-2007 10:20 AM |
| Help with tail /grep needed | Felix2511 | UNIX for Dummies Questions & Answers | 4 | 05-17-2007 04:22 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Quote:
Code:
zcat CurrentCollectorMeterReadBackup20081007.tar.gz | grep -l '30017A6800022D1A' && cp CurrentCollectorMeterReadBackup20081007.tar.gz nav/files/ However, I'm not sure if you want to copy a FILE named 30017A... or the file CONTAINING this. Either way, you need to put this into a loop which tests against either each file in the directory, or each record that will be matched. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|