You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
579 B
10 lines
579 B
#!/bin/sh |
|
# To make this script executable, use the command: chmod +x 22_shebang.sh |
|
# To run the script, use the command: ./22_shebang.sh |
|
echo "This spell will teach you the basics of script execution headers in POSIX-compliant Bash" |
|
echo "To study the code of the examples, please use the command: cat 22_shebang.sh" |
|
|
|
# Shebang |
|
echo "#!/bin/sh is the shebang, it specifies the interpreter to use for running the script" |
|
echo "#!/usr/bin/env python is an alternative shebang to use for Python scripts" |
|
echo "#!/usr/bin/env ruby is an alternative shebang to use for Ruby scripts"
|
|
|