Skip to content

Commit eea96f3

Browse files
committed
added script2
1 parent 059ddc1 commit eea96f3

File tree

1 file changed

+10
-0
lines changed
  • linux_training_academy/shell_scripting_sccuintly

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/bash
2+
3+
cat /etc/shadow
4+
if [ $? -eq 0 ]; then
5+
echo "Command succeeded"
6+
exit 0
7+
else
8+
echo "Command failed"
9+
exit 1
10+
fi

0 commit comments

Comments
 (0)