Linked Questions
31 questions linked to/from Removing control chars (including console codes / colours) from script output
25
votes
2
answers
17k
views
Removing Color Codes From Output [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
I'm working on a script to work alongside a program that I'm writing. What i'm trying to do is ...
4
votes
3
answers
6k
views
Redirecting without color [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
How do I disable all color codes when redirecting to file?
I previously asked how to redirect ...
2
votes
1
answer
24k
views
How to remove junk characters from the file generated by script command in linux [duplicate]
I am using script command to record everything from terminal. But when I am opening the generated file its having lots of junk character.
Can anyone help me to remove these junk characters from file ...
4
votes
2
answers
3k
views
How can i redirect the output to a file when the program is build with ncurses library [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
If we redirect output to file in this pattern top >> somefile.txt, we get lot of garbage ...
1
vote
1
answer
2k
views
Remove terminal formatting from file [duplicate]
I used script to dump output of some other script to file. While it worked great, the output was formatted(colours, etc.), so now it's unreadable as a raw text - I have to use cat or less instead. The ...
1
vote
1
answer
2k
views
How to convert a string with hidden characters to a normal string [duplicate]
Does anyone have an idea on how to remove hidden characters from a string in the shell?
This is an example :
# echo $a;
[root@localhost ~]#
But when I "force" display of hidden characters ...
0
votes
1
answer
427
views
Email issue with output of bash script blcheck [duplicate]
Bash script blcheck from github format issues with emailing output
Console output displays correct, but when sent to email via mailx will on go as attachment, not to body.
33%% dnsbl.inps.de ...
1
vote
1
answer
587
views
Is it possible to uncolor STDIN before writing it to file? [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
Is there a utility which uncolors colored output? Something like the uncolor utility in the ...
1
vote
0
answers
34
views
Portable output from `script` [duplicate]
I have recorded my session which looks good on my terminal (when doing cat typescript), but shows gibberish everywhere else.
Is it possibile to use knowledge of my terminal to produce a portable ...
0
votes
0
answers
20
views
vim remove pattern not working [duplicate]
I'm trying to remove all occurrences of '[01;34m' from the following file:
Script started on 2023-09-16 10:06:45-04:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="204&...
70
votes
7
answers
26k
views
Program that passes STDIN to STDOUT with color codes stripped?
I have a command that produces output in color, and I would like to pipe it into a file with the color codes stripped out. Is there a command that works like cat except that it strips color codes? I ...
19
votes
2
answers
29k
views
How to strip color codes out of stdout and pipe to file and stdout
I have a program that uses printf with some tput mixed in it and I'd like to pipe the output to stdout as well as a file. I'd prefer to use sed since I don't want any unnecessary dependencies on my ...
8
votes
3
answers
7k
views
'dos2unix' is unable to convert a `typescript` file to Unix format
I recorded my current session using the script command, and all information was saved in a typescript file, but when I opened it using Vim there were a lot of ^Ms due to carriage returns.
I tried to ...
14
votes
2
answers
8k
views
leave color in stdout but remove from tee
I want to see color output when in stdout to the console, but I want to remove it in a captured copy of the output from the tee command.
In my case,
command_that_writes_color_to_stdout | tee file
I'd ...
4
votes
3
answers
4k
views
Why in the output of script (1) the newline is CR + LF (dos-style)?
In the typescript of script command (i.e. in the saved file), the newline is CR + LF (\r\n), although the original one (fed to script) is LF. Why?
It seems it's tty issue, which I don't know at all. ...