Skip to content

Commit 876ec0d

Browse files
Create function.sh
1 parent 299fb36 commit 876ec0d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

function.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
echo "This is function test"
3+
disk_utilization()
4+
{
5+
disk=`df -h`
6+
echo "disk utiliation is : $disk "
7+
}
8+
if [[ $? -eq 0 ]];
9+
then
10+
echo "this is disk usage report"
11+
disk_utilization
12+
else
13+
echo "disk has some issue "
14+
fi

0 commit comments

Comments
 (0)