i'm pretty new to the shell scripting world and not sure, if i should give my scripts a .sh or .bash extension.
not sure what the pros and cons are.
i'm pretty new to the shell scripting world and not sure, if i should give my scripts a .sh or .bash extension.
not sure what the pros and cons are.
Just put the shebang at the top of your script:
#! /usr/bin/env bash
I'm not a big fan of extensions because if you put the script in your
$PATH
it's weird to typedo_the_thing.bash