LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-01-2009, 06:09 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545

Rep: Reputation: 49
Convert index.dat from windows ^@


Hi,
I would like to convert teh typical binary index.dat to linux, and replace the ^@ with the right char and having Line Feed as it should.

Any ideas to understand this binary?
 
Old 03-01-2009, 07:43 PM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
If you want to extract the text urls, you could use the `strings' program.
 
Old 12-08-2009, 01:08 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545

Original Poster
Rep: Reputation: 49
Code:
strings index.dat | gawk '/http/{print substr($0,index($0,"http"))}'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get thelinks from a windows Index.dat ? frenchn00b Linux - General 8 07-29-2009 05:16 AM
Convert a .dat (vcd?) to ipod-viewable mp4 bruno321 Linux - Software 2 02-03-2009 01:16 PM
Convert a index.htm into single clear list of http:// links frenchn00b Programming 6 10-30-2007 04:48 AM
Viewing windows index.dat file nurjo Linux - Security 1 09-27-2005 06:28 AM
Deleting Windows Index.dat and other 'spyware' from Linux aweir14150 Linux - General 5 03-04-2004 01:54 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration