File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- # bash \_ shell \_ script \_ starter
1
+ # Bash shell script starter
2
2
3
3
This is a starter / template for writing Bash scripts. It includes a
4
4
few things:
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ SCRIPT_PATH="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)"
29
29
# # @brief default value for the 'word' CLI parameter
30
30
declare DEFAULT_WORD
31
31
# shellcheck disable=SC2034
32
- DEFAULT_WORD=" hello "
32
+ DEFAULT_WORD=" bird "
33
33
34
34
35
35
# # @fn die
@@ -166,7 +166,12 @@ main() {
166
166
167
167
shift " $(( OPTIND - 1 )) "
168
168
169
- # Process positional arguments
169
+
170
+ # ##
171
+ # ## Process positional arguments
172
+ # ##
173
+
174
+
170
175
for file in " $@ " ; do
171
176
printf " %s" " $file "
172
177
done
@@ -176,7 +181,7 @@ main() {
176
181
# ## program logic goes here
177
182
# ##
178
183
179
- echo " $word "
184
+ printf " %s %s %s the %s is the word\n " " $word " " $word " " $word " " $word "
180
185
181
186
}
182
187
You can’t perform that action at this time.
0 commit comments