the main problem with the UNIX Philosophy Of Having Lots Of Little Tools That Each Do One Thing is: you can never remember the name of each one, or how it works
@jk I seem to recall a script like this, but can't remember the name (ironic, no?).
A related one is thefuck, which fixes typos in commands and arguments: https://github.com/nvbn/thefuck