LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [OT puzzle] Grep regex please?

[ILUG] [OT puzzle] Grep regex please?

Proinnsias Breathnach proinnsias at linux.ie
Tue Jun 27 13:10:18 IST 2006


On Tue, Jun 27, 2006 at 01:04:02PM +0100, Declan Moriarty wrote:
> On Tue, 2006-06-27 at 12:22 +0100, Proinnsias Breathnach wrote:
> > On Tue, Jun 27, 2006 at 11:58:49AM +0100, Declan Moriarty wrote:
> > > So I'm looking for the question marks in 
> > > 
> > > grep -o --binary-files=text -E '?????'  index.dat |less
> > > 
> > > and it is possible that the user (administrator here) could vary.
> > > -- 
> > 
> > strings index.dat | grep http | less ?
> > 
> > Maybe, just maybe ?
> 
> No, I was trying to avoid that. The lines can be 100s or characters
> long, and all the hex screws up the font on the terminal. Doing this
> with a visitor linux OS is worse, because the consoles are more
> sensitive to being mucked up than on an installed linux IME.
> -- 

That's the point of "strings"  - a command that pulls the ASCII
intelligible strings from the file - and ignores non-printing characters
/ sequences. - follow with grep, and things should work reasonably well.

P



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell