Skip to content

Commit 059ddc1

Browse files
committed
changes in comments
1 parent 6783b8b commit 059ddc1

File tree

1 file changed

+8
-5
lines changed
  • linux_training_academy/shell_scripting_sccuintly

1 file changed

+8
-5
lines changed

linux_training_academy/shell_scripting_sccuintly/script.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#! /bin/bash -x
2+
3+
###################Three#################################
4+
25
#echo 'Shell Scripting is Fun!'
36

47
#var='Shell Scripting is Fun!'
@@ -7,7 +10,7 @@
710
#hname=$(hostname)
811
#echo "This script is running on ${hname}."
912

10-
#######################################################
13+
########################Four###############################
1114

1215
#FILEPATH="/etc/shadow"
1316
#if [ -f "$FILEPATH" ]; then
@@ -19,7 +22,7 @@
1922
# fi
2023
#fi
2124

22-
#######################################################
25+
########################Five###############################
2326

2427
#text=( man bear pig dog cat )
2528
#for i in "${text[@]}"
@@ -31,7 +34,7 @@
3134
#do
3235
# echo $i
3336
#done
34-
#######################################################
37+
##########################Six#############################
3538

3639
#read -p "Enter a file or directory path: " filename
3740
#if [ -f "$filename" ]; then
@@ -42,7 +45,7 @@
4245
# echo "Other type of file."
4346
#fi
4447

45-
#######################################################
48+
########################Seven###############################
4649

4750
#if [ $# -ne 1 ]; then
4851
# echo "Expect only one argument as path to a file/dir."
@@ -58,7 +61,7 @@
5861
# echo "Other type of file."
5962
#fi
6063

61-
#######################################################
64+
##########################Eight#############################
6265

6366
if [ $# -eq 0 ]; then
6467
echo "Expect atleast one argument as path to a file/dir."

0 commit comments

Comments
 (0)