Search Results

Search: Posts Made By: dgtek
10,045
Posted By dgtek
thanks for the reply but this doesn't work. ...
thanks for the reply but this doesn't work.

The one that did the job was:

CR=$(printf "\r")
ESC=$(printf "\e")
sed "s/$ESC\[[^Gm]*[Gm]//g;s/$ESC%G//g;s/$CR//g" boottest.log
10,045
Posted By dgtek
Thanks a million, that did the job!
Thanks a million, that did the job!
10,045
Posted By dgtek
awk '{gsub(/\^\[\[[0-9]*;*[0-9]*(G\[|m]*)/,x)}1'...
awk '{gsub(/\^\[\[[0-9]*;*[0-9]*(G\[|m]*)/,x)}1' boottest.log > boottest_awk.log

This is the content of the boottest_awk.log file:
I'll post a png file of what is seen from within vi:
10,045
Posted By dgtek
Either I'm doing something really wrong but in my...
Either I'm doing something really wrong but in my test here the file remains the same thing. But I did the test of pasting the file content into another file and then it works.

Probably once you...
10,045
Posted By dgtek
I just did, waiting for the moderator to approve
I just did, waiting for the moderator to approve
10,045
Posted By dgtek
Here is the file in question
Here is the file in question
10,045
Posted By dgtek
Hum... sorry this one doesn't anything at all the...
Hum... sorry this one doesn't anything at all the output is exactly the same
10,045
Posted By dgtek
Yes As mentioned I did try that on top of the sed...
Yes As mentioned I did try that on top of the sed command with no success
10,045
Posted By dgtek
[Solved] Removing Colors and ^M in a log file
Hi,

I'm trying to send a log file to mailx as a "Body Message" but since the file contains so many control and color characters it's making an attachement out of it instead of putting it in the...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 05:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy