We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa6f8a9 commit b04fdf4Copy full SHA for b04fdf4
example_files/shell_scripting/comments.sh
@@ -0,0 +1,2 @@
1
+# this is a comment on its own line
2
+echo 'hello' # and this is a comment after a command
example_files/shell_scripting/if_then_else.sh
@@ -3,7 +3,7 @@ if (( $# != 1 )) ; then
3
exit 1
4
else
5
if [[ ! -f $1 ]] ; then
6
- echo "Error! '$1' is not a valid file" 1>&2
+ printf 'Error! %q is not a valid file\n' "$1" 1>&2
7
8
9
echo "No. of lines in '$1' is $(wc -l < "$1")"
0 commit comments