Sample Header Ad - 728x90

Script error message in a single line

0 votes
3 answers
379 views
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.
Asked by Murali (1 rep)
Sep 12, 2017, 08:14 PM
Last activity: May 6, 2018, 07:18 AM