How to create an alias to short code snippet that generates shebang (#!/bin/bash
) text?
I'm looking for something like:
alias createConfiger='echo -e "#!/bin/bash\necho configvalue" > printConfig.sh'
How to create an alias to short code snippet that generates shebang (#!/bin/bash
) text?
I'm looking for something like:
alias createConfiger='echo -e "#!/bin/bash\necho configvalue" > printConfig.sh'
You need to do it in two steps, and apparently use single-quotes as well: