SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
tr -d " \t" <filename
See the manpage for tr(1) for more details.