I am executing the command
mv /prod/new/outputlog/error.log /prod/hist/new/outputlog/error.log.32423423424 using shell script.
Since the error.log file is not available the command writing an error message in to the log file automatically. The error message mv: cannot rename /prod/new/outputlog/error.log /prod/hist/new/outputlog/error.log.32423423424 Not wrap in to two lines.
Since it is a system-generated error message I am unable to control the length of the error message for each line. I want the system to wrap the message after it reaches length 80.
mvcommand, as roaima has, but it sounds like you might want to wrap any and all (error?) messages for the log file, in which case we'd need to see how you are sending output to that log file.