The UNIX and Linux Forums  

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
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

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-06-2008
ali560045's Avatar
ali560045 ali560045 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 328
help needed in grep and copy

need help in a command. My requirement is that i m grepping the filename based on a pattern in .tar.gz file and then copying the file into some dir

below is what exactly i want to achieve

step 1: grep -l '30017A6800022D1A' CurrentCollectorMeterReadBackup20081007.tar.gz

step 2: file found should be copied to dir nav/files

How to achieve the above steps without unzipping the file ? Plz help me in this

Last edited by ali560045; 11-06-2008 at 03:26 AM..
 

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 01:06 AM.


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