OK, now we know after a lot of guessing and wasted brain power, @rtb has kindly revealed he is using KSH on HP-UX ! Wow :). We finally got the basic info we need, so I changed the topic and moved the topic to HP-UX
We can all stop guessing, yea!
So, you cannot use angle brackets in this manner in KSH
<if test -s “$billing-file”>
In KSH, you need this type of syntax (from a google search to be sure), notice the square brackets.
if [[ condition ]]; then
// Condition satisfied and run commands between if..fi
fi
Kindly find a good KSH reference and use that as a guide, @rtb and post back when you have actually written some of your own KSH code to address your task. The reference below provides nearly everything you need to write KSH code to test for an empty string.
Thanks!
Reference:
https://www.cyberciti.biz/faq/ksh-if-command-examples/
Note: Members (users asking questions) MUST specify your shell and OS when posting questions in a technical forum, otherwise you are wasting everyones time and energy. Time is precious. Team members should not guess or assume. It's better to know these things. If people do not post this basic information, ask for it "up front" and wait for the member to reply with this basic information, please. THANKS