I apologise because I had pasted this question in the newbies forum first (because i am a bit of a newbie) but thought it might be better suited in here
if i have to sepearate parameters can I use this syntax especially the or part (||) and is this correct
if [ "${CURR_STATUS}" || "${CURR_STATUSTEST}" != "${NEW_STATUS}" ]
the code was tried (but as I said Im fairly new and not to clued up on the syntax) so although this particular part of the code may not work it may be due to the syntax rather than than the coding
Well I will point out that your question did not exhibit much thoughtfullness on your part. You did not tell us what shell you are using or what result you wanted. Futhermore it was a crosspost which is a violation of our rules. You reap what you sow. I choose to ignore your question other than deleting the duplicate post.
I still don't know what shell you're using, but the syntax that oombera suggests seems to be illegal in ksh. Some quick experiments with bash seem to suggest that it does work there, but on bash, [ and [[ just seem to be the same thing. (On the other hand, many shells will accept your original syntax.)
I usually try code before I post it. I did this time too. For me, it worked in ksh with double brackets, but not with single, so it seemed like a legit suggestion.
That's our Perderabo ... mr. congeniality.
---------
oh well, what can you say about someone who knows 1000x as much unix as you do..? just deal with it i guess...