in reply to Cleaning a text file

If you just want to delete single characters, you can use the tr operator combined with the c and d options.