When we are trying to redirect an output from an production server to local system, there are some unwanted characters eg.
^[[032m. actually these are the color codes which is appearing while its redirected. When the same script is executed on the server without redirection some part of the output appears in colored format.
If we open this file directly in the notepad or any other tool it shows come different character like below.
So is there any possible solution to skip them to happen before or after redirection.