Remove the variable value in memory --unset command
#answer=ind
[davsingh@noisecover-dr Scripts]$ set | grep -e "answer" -e "lastname"
answer=ind
lastname=singh
#use the unset command
[davsingh@noisecover-dr Scripts]$ unset answer
[davsingh@noisecover-dr Scripts]$ set | grep -e "answer" -e "lastname"
lastname=singh
[davsingh@noisecover-dr Scripts]$ set | grep answer
[davsingh@noisecover-dr Scripts]$
[davsingh@noisecover-dr Scripts]$ set | grep -e "answer" -e "lastname"
answer=ind
lastname=singh
#use the unset command
[davsingh@noisecover-dr Scripts]$ unset answer
[davsingh@noisecover-dr Scripts]$ set | grep -e "answer" -e "lastname"
lastname=singh
[davsingh@noisecover-dr Scripts]$ set | grep answer
[davsingh@noisecover-dr Scripts]$
Comments
Post a Comment