Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non-displayable char in logfile, how to get rid ?

Status
Not open for further replies.

vikmos

Technical User
Nov 27, 2001
7
US
Hi,
I have output of elm >> to LOGFILE like:
elm -s &quot;$SUBJECT&quot; -a $MAILTO < $BODY >>$LOGFILE

and after that I have a lot of weird things doing cat or grep with LOGFILE. Doing VI it, I see only the following :

^[[22;1H^[[JText has 8BIT data and charset=US-ASCII, using charset=UNKNOWN-8BIT


in CAT contents include meaningful info in it coming from ELM like:
“Sending mail...” + a lot of empty lines.

Basically I want to get rid of all not-readable stuff, making my LOGFILE clean.
But doing “ grep ‘[a-z]’ LOGFILE “ I have absolutely same contents. Will appreciate any wise.

Thanks
Mario
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top