3

I started a unix keystroke log with script temp.txt; however, it captures my keystrokes verbatim (backspaces, arrows, etc...). What is the best way to remove the control characters from a file named temp.txt that I created with script temp.txt?


NOTE: I am answering my own question

Mike Pennington
  • 8,266
  • 9
  • 41
  • 86

1 Answers1

3

This does the job...

cat temp.txt | col -bx > no_control_chars.txt
Mike Pennington
  • 8,266
  • 9
  • 41
  • 86