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'
Copyright © 2021 Jogjafile Inc.
You need to do it in two steps, and apparently use single-quotes as well: