Many times I have run a command with all the letters in uppercase (maybe because CapsLock was on), and I pressed Enter before realising this.
How can I run the last command with all the letters transformed to lowercase?
You can accomplish that by adding the following small function (I call it
Next, when you will run:
the last command will be run with all the letters to lowercase.
`echo !! | tr '[:upper:]' '[:lower:]'`
The key is in the
here comes a programmers answer.... use python:
Or Perl (probably my favorite):
Or NodeJS if you have it:
You could also use
And the one with