converting 'data' to text

Net Llama! netllama
Tue Jun 5 13:38:55 PDT 2007


On Mon, 4 Jun 2007, Bill Campbell wrote:
> On Mon, Jun 04, 2007, Net Llama! wrote:
>> I've got this app which is generating output to a log file.
>> Unfortunately, the log file is getting interpretted as a 'data' (when i
>> run file against it), and to make matters worse, this is resulting in the
>> file being treated as a binary blob of data when I email it (rather than
>> plain text).  However, if I open the file in more, less, vi, etc, its all
>> just normal text.
>>
>> Anyone know of a way to convert this over to text so that it will stop
>> getting handled by email clients as binary data?
>
> One way might be:
>
> strings datafile > textfile

Thanks, that did the trick.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org



More information about the Linux-users mailing list