How to print a command (echo it), then run it in a single command ?
This is useful when you have some alias/function and wants to print what the command is before running the command.
This would be the equivalent of
alias mi='echo mvn install; mvn install'
The idea is to avoid the repetition of the command (here 'mvn install' is written twice)
alias echoAndRun='...' alias mi='echoAndRun mvn install'
Thanks for your help.