|
You are here |
syntackle.com | ||
| | | | |
lanziani.com
|
|
| | | | | I do a big use of shell scripts, and many of them contain a for loop, do you know what normally happen when you press CTRL^C and the script is executing an action inside the loop? | |
| | | | |
seanmcp.com
|
|
| | | | | Writing a script to read the package.json for you | |
| | | | |
purefun.dev
|
|
| | | | | When in doubt, always consider adding set -e and cd $(dirname $0) at the beginning of a shellscript. Why? Let's find out: When to use cd $(dirname $0) $0 is the currently executing script, so what the command does is to change current directory into the same directory as where the script resides. If you don't do this, any references to other files next to your script will be incorrect if you run the script from another directory. | |
| | | | |
schmonz.com
|
|
| | | |||