Variable assignment in shell scripting

Variable assignment in shell scripting

[test@lab ~]$ a=`df -kh /tmp |awk ‘{print $4}’`
[test@lab ~]$ echo $a
Avail 14G
[test@bab ~]$

 

test@lab ~]$ a=`df -kh /tmp |awk ‘{print $4}’`
[test@lab ~]$ echo ” The free space in temp is $a”
The free space in temp is Avail
14G
[test@labĀ ~]$

Leave a Reply

Your email address will not be published. Required fields are marked *