Shell Script "printf examples"
take "cost" as a variable
[root@noisecover-dr Scripts]# cost=0
[root@noisecover-dr Scripts]# printf $cost --> print cost value
0[root@noisecover-dr Scripts]# --> prompt will come on same line
[root@noisecover-dr Scripts]# cost=0
[root@noisecover-dr Scripts]# printf $cost --> print cost value
0[root@noisecover-dr Scripts]# --> prompt will come on same line
Comments
Post a Comment