I need to replace some non text characters in some automatically generated files with spaces.
Although they are text files after processing some characters are added and the cannot be edited as text any more
Is there a sed command to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on your platform and
sedversion, you may or may not be able to do something likes/[\000-\037]/ /g; but the portable and simple alternative is this:(All character codes are “binary”; I have assumed you mean control characters, but if you mean 8-bit characters
\200-\377or something else altogether, it’s obviously trivial to adjust the range.)