How to create an alias to short code snippet that generates shebang (#!/bin/bash) text?
#!/bin/bash
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:
tempvar='#!/bin/bash\necho configvalue' alias createConfiger='echo -e "$tempvar" > printConfig.sh'
You need to do it in two steps, and apparently use single-quotes as well: