I am rewriting a slew (400+) of scripts and one of the things I'm doing is trying to clean them up a bit. The biggest offender in these scripts - in terms of 'garbage' - is that every line the original writer wanted to go to the log file is of the form
I have been told - by those who know more than I do about this kind of stuff - that I can eliminate the '>> $logfile' piece above by adding a single command to the beginning of the script ... but when I asked what that command was, the email flow stopped.
Does anyone have a suggestion on how to eliminate this visual garbage? As long as I have to rewrite them, I want to do it 'right' and cleaning up the script by eliminating hundreds (in some cases) of these lines would go a long way to making them more readable.
Scripting is being done in .ksh on an AIX 5.2 box.
Thanks in advance.
Tom
"My mind is like a steel whatchamacallit ...
Code:
print "some status message" >> $logfile
I have been told - by those who know more than I do about this kind of stuff - that I can eliminate the '>> $logfile' piece above by adding a single command to the beginning of the script ... but when I asked what that command was, the email flow stopped.
Does anyone have a suggestion on how to eliminate this visual garbage? As long as I have to rewrite them, I want to do it 'right' and cleaning up the script by eliminating hundreds (in some cases) of these lines would go a long way to making them more readable.
Scripting is being done in .ksh on an AIX 5.2 box.
Thanks in advance.
Tom
"My mind is like a steel whatchamacallit ...