Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] grep sort of thing




On Tue, 2003-06-10 at 23:03, Brett Robson wrote:
> Hi all,
> 
> There must be a simple way to do this but I can't work it out.
> 
> I want to display strings from a text file(s) based on a reg exp, sort
> of like egrep but only displaying the matched string not the whole line
> from the file.
> 
> Thanks
> Brett

cat $file | grep $entry | echo $entry



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links