On Tue, Jun 27, 2006 at 01:16:01PM +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 ?
>> I missapplied that first time. Ignore any criticism.
>> it caught the http all right. No file:// ftp:// or whatever else. That
> might be enough though.
easy to fix:
strings index.dat | grep -e '[http|ftp|file]' | less
> So we can pencil your name in and thank you. It does also catch a whole
> lot of gibberish on the end of some urls but it's text gibberish.
Probably easily solved by adding a :
| sed -e 's/ .*$//'
before the | less
> I wonder does Tom's have strings?
I'd be suprised if it didn't !
it could be approximated using sed/awk/grep if you really needed to
thoguh.
P
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!