Search Results

Search: Posts Made By: Fred63528
2,012
Posted By Fred63528
Because I forgot my password...and I didnt think...
Because I forgot my password...and I didnt think to just click on the forgot password link. Please i do need help though>
2,012
Posted By Fred63528
How do you check if a variable has been assigned?
I am trying to check whether a variable has been assigned on the command line or not.

Here is what I did:
#!/usr/bin/bash

if( $variable == '\0')
{
print "variable was not assigned"
exit...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy