Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>System>>A needle in a haystack ??

A needle in a haystack ??

ArcticStones
09-24-2005, 01:12 AM
.
I have a Spotlight question.

About a week ago, Word crashed a number of times.
Unfortunately, it took me several days to realize that I had lost my rough draught of a very important interview.

I have saved 29 "Word Work files" that were created during this time, some of them quite lengthy.

The problem is that they do NOT seem to be searchable!
Spotlight is not registering text strings that obviously appear therein - to my surprise. And I would like to check (without wasting hours) if part of my text was saved.

Anyone have some helpful advice?

Best regards,
ArcticStones


PS. When I paste all the text from a Work File into a new Word document, even Word’s finder function won’t recognise text strings. Very strange... Is there something special about these texts that I should know?

If I choose to show hidden characters, the whole text is re-displayed as gibberish. I am confused!

voldenuit
09-24-2005, 01:58 AM
The Unix command strings is quite useful to do that kind of thing:

strings mycrashedwordfile.doc | less

will come up with the text parts of those files in a comfortably paged way.

To speed things up more, you could even do

strings *.doc | less

and if you are sure of the presence of a significant string, you can directly pick the right file, foobar being the string you know is inside:

grep foobar *.doc

The syntax here supposes you cd to the directory where all these doc files live, otherwise you'll have to give the full path.

Good luck.

----

Just saw the edit:

You can also use strings to clean up the text, but BareBones free editor TextWrangler has a very useful "zap gremlins" option.

Still, the way of the get-a-larger-hammer unix.wizard might be something like:

strings borked.doc > interview.txt

If I were you, I'd use a bulletproof text-editor for raw text, then import it for layout. Should silly doc formats be required, I'd convert to that at the last possible moment.

ArcticStones
09-24-2005, 02:18 AM
I have never used Unix commands, so this would be the very first time.

My apologies, but can you instruct me in painstaking detail? For instance if I wish to search the file called: "Word Work File D_3958".

It’s sufficient that I find and display the text, it’s not that long and I am perfectly willing to re-type it.

:)

Photek
09-24-2005, 03:03 AM
What would happen if you copied and pasted the text into Appleworks? or Openoffice?

Also... I have to 'clean' text before I put it into page in Indesign, I usually put word docs into textedit convert them to plain text then drop them in... have you tried doing the first bit then pasting them back into word and re-saving?

What version of word are you running?

acme.mail.order
09-24-2005, 03:16 AM
Painstaking Detail:

Pretty simple. Assuming the name above is accurate, first move the file to your desktop.
Next, open Applications -> Utilities -> Terminal and paste the following :
[code]
strings "Desktop/Word Work File D_3958" > Desktop/extracted.txt
[code]

Press return. If absolutely nothing happens (i.e. you just jet another line with the same heading) that's good. Look on your Desktop for a file called "extracted.txt"

If you get something that sounds like an error message, try this instead:

[code]
strings "Desktop/Word Work File D_3958.doc" > Desktop/extracted.txt
[code]

The only difference is the file extension.

ArcticStones
09-25-2005, 02:24 AM
Painstaking Detail:

Voldenuit & Acme: Thanks a million for the help!
I have now recovered my notes.

:) :) :)


 

TOP

For more info

File menus 
A needle in a haystack
Will I have any proble
hard disk reported twi
Running 10.3.9 on an i
Need Help. Need to res
Can't find HD in TiBoo
Finder restarts when y
10.4 Mobile Accounts /
Fsck hangs 

News Archive

Problem with burn fold
External harddrive per
Tiger won't sleep ?nor
anti virus 
Removing spotlight win
Slideshow default sett
printing: CUPS: lpadmi
Can't install fonts wi
%CPU usage out of cont
Multiple change-info i

Related stories:

Upgrading OS 9.2.2 to OS X
on airport-connect script
prevent creation of ._ files, coping tiger to pc
Booting Problem
FAT 32 file problems
OS X Booting Problem (A DOOSIE)
Microphone Settings

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics