How can I check if a variable is empty or not in tcsh Shell?
The standard warnings regarding use of tcsh/csh apply (don’t use it for scripting, due to its inherent limitations), but here’s the translation: if ( “$1” == “” ) then # parentheses not strictly needed in this simple case echo “variable is empty” else echo “variable contains $1” endif Note, though, that if you were to … Read more