converting 'data' to text
Bill Campbell
linux-sxs
Mon Jun 4 19:01:14 PDT 2007
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
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
Just because you do not take an interest in politics doesn't mean politics
won't take an interest in you. -- Pericles
More information about the Linux-users
mailing list