The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to exclude the GREP command from GREP yamsin789 UNIX for Advanced & Expert Users 2 10-05-2007 03:59 AM
Need Information. Will Appreciate It rapzkilla UNIX for Dummies Questions & Answers 2 06-28-2007 03:33 AM
Make grep -c display like grep -n? Jerrad Shell Programming and Scripting 2 08-25-2006 01:20 AM
I need a ton of information.... markforsythe AIX 1 08-02-2004 10:17 AM
Need information on AIX 5.1.0.2 TheBlueLady UNIX for Advanced & Expert Users 3 08-19-2002 10:32 AM

 
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 08-20-2001
rizal rizal is offline
Registered User
  
 

Join Date: Aug 2001
Location: florida
Posts: 3
removing unneeded information from grep?

Im looking for a way to setup a lil' script that will read the output from a command and dump certain items from that into another file

for an example, im trying this
cat test | grep "statement" > test.answer

but its giving me the full line that it finds
is there any way to take out a portion of text from before what i want and after what i want?

as in, I am searching for address=here
so i: cat test | grep "here" > test.answer
and i want to get rid of the parts before and after the word 'here'...is there anyway to do this?

Thanks
David
 

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