Originally posted by: gerard-mzs
Hello experts,
Im trying to execute the following lines of script in AIX 5.3,
but the sed command seems to fail as I cant see any output and
the $responseXmlFile that gets created is 0 bytes
# Add new lines
sed -e 's/\(<\/\w*:\w*\>\)./\1>\n/g' "$tempResponseXmlFile" > "$responseXmlFile"
if
$? -ne 0 ; then
warn "sed reported an error."
fi
# Create local variables
local queueName_arr_tmp=`sed -n -e 's/.
<\w:queueName>\(.
\)<\/\w:queueName>.*/\1/p' "$responseXmlFile"`
local queueStatus_arr_tmp=`sed -n -e 's/.
<\w:queueStatus>\(.
\)<\/\w:queueStatus>.*/\1/p' "$responseXmlFile"`
This script was originally written for Linux. When I tried to run it on HP-UX I faced the same problem.
So I installed the GNU sed on HP-UX and it worked fine. I did the same (installed GNU sed) on AIX,
but it hasnt resolved the problem.
The $tempResponseXmlFile is attached to this thread to your ref.
Any ideas on how to get these sed script lines to work on AIX 5.3 ?
Thanks
Gerard
#AIX-Forum