Re: [flalug] File content extraction question

From: tom smith (atomsmitty@gmail.com)
Date: Fri Nov 09 2007 - 22:04:18 EST


Eben King wrote:
> On Fri, 9 Nov 2007, tom smith wrote:
>
>> Ron Youvan wrote:
>>>> I have a binary file with readable email addresses embedded in it.
>>>> I would like to extract those email addresses to a text file such that
>>>> the email
>>>> addresses are readable and separated, preferably all in one column.
>>>> Is there anyway to do this with a shell script or using a series of
>>>> file system
>>>> utilities? Each email address is an identifiable string e.g.
>>>> soandso@blabla.com
>>>
>>> Is this something that midnight commander can't view? (F3)
>>
>> The email addresses can be read in a text editor, but are embedded in
>> a binary
>> file. For example, when you open the file, you can see a binary
>> string and then
>> an email address, then a binary string, then an email address, and so on.
>> I need a method to extract each email address string and put each into
>> a single
>> text file so it is usable.
>
> Tried "strings"?
>
What is strings?
Smitty



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:03:02 EDT