Can you use fgrep or grep that will filter for the regex
 for [a-zA-Z0-9] plus any other characters you want (comma? hyphen?)

then read your file, and out to the new file.
PERL could handle this nicely

/B



----- Original Message -----
From: "Stone, Timothy" <[EMAIL PROTECTED]>
To: "Redhat-List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 13:16
Subject: [OT] extracting text from binary file


> I've inherited several Quark files on Mac-formatted CDs.  I'm able to open
them on my RHL server and transfer them via scp to a Cygwin-enabled Windoze
for hex , or binary, inspection, in TextPad (a kickass text editor for
Windoze BTW) and view the text contents, e.g. "Four score and seven years
ago..." Unfortuately, TextPad does not allow me to "grap" or extract this
text for cut-paste in a normal text (*.txt) file.
>
> Is there a recommended hex editor in Linux that would allow me to select
the text and paste it to a regular text file for editing? Maybe a Quark
viewer?
>
> Thanks in advance.
>
> Warmest Regards,
> Tim
>
> --
> /**
>  * Timothy Stone      . Sun Certified Java Programmer
>  * Web Master         . tstone at cityofhbg dot com
>  * City of Harrisburg . 717.255.7297
>  * Pennsylvania USA   . 717.903.9162
>  *
>  * "Censorship always defeats its own purpose,
>  *  for it creates in the end the kind of society
>  *  that is incapable of exercising real discretion."
>  *  --Henry Steele Commager, Historian
>  */
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to