Squeezing or squashing repeated characters is what it's called. There's the tr unix utility, and perl has a tr operator, too.
$ perl -wpe 'tr/ //s;'
In reply to Re: Deleting intermediate whitespaces, but leaving one behind each word
by Anonymous Monk
in thread Deleting intermediate whitespaces, but leaving one behind each word
by Feneden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |