Thanks for correcting me. As i said even im new to shell scripting.
I included the blocks '{' '}' in case there are multiple commands to be executed in a IF statement. And you r right ';' is not required.
we can use = as well as -eq as long as it is in double quotes i guess.
here is a...
First of all IF is a conditional statement not a loop.
Evene im new to shell scripting but here you go!
if [ $FS = "TRUE" ]
then{
command 1 or Function_call;
command 2 or Function_call;
.
.
.
}
else{
command 3 or Function_call;
command 4 or Function_call;
}
fi
#where $FS is a variable and...
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.