I have one question that hopefully isn't too complicated for the more advanced users here. In one of the Solaris KSH scripts I'm working on, is it possible to script the following:
If there "is" an empty blank line "at the end" of /tmp/text.txt, then remove only that one empty blank line from the end.
If there is "no" empty blank line at the end of /tmp/text.txt, then append an "empty blank line" to the very end of that file.
I'm having difficulty with this one, but I suspect either awk or sed may be needed?
Thank you so much,
cg