File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # bash \_ shell \_ script \_ starter
1+ # Bash shell script starter
22
33This is a starter / template for writing Bash scripts. It includes a
44few things:
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ SCRIPT_PATH="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)"
2929# # @brief default value for the 'word' CLI parameter
3030declare DEFAULT_WORD
3131# shellcheck disable=SC2034
32- DEFAULT_WORD=" hello "
32+ DEFAULT_WORD=" bird "
3333
3434
3535# # @fn die
@@ -166,7 +166,12 @@ main() {
166166
167167 shift " $(( OPTIND - 1 )) "
168168
169- # Process positional arguments
169+
170+ # ##
171+ # ## Process positional arguments
172+ # ##
173+
174+
170175 for file in " $@ " ; do
171176 printf " %s" " $file "
172177 done
@@ -176,7 +181,7 @@ main() {
176181 # ## program logic goes here
177182 # ##
178183
179- echo " $word "
184+ printf " %s %s %s the %s is the word\n " " $word " " $word " " $word " " $word "
180185
181186}
182187
You can’t perform that action at this time.
0 commit comments