Skip to content

REMOVE STRAY UNPRINTABLE CHARS FROM TEXT FILE

Albert Rossi edited this page Jan 27, 2023 · 2 revisions

tr -cd '\11\12\15\40-\176' < dcache-tpc.log > clean-file

To get rid of ^M, do

sed -i 's/^M//g'

where ^M = ctrl+v M

Clone this wiki locally