Is something wrong with below code?
Hi,
Is something wrong with below code, actually i am getting value for only one variable. Code:
VIP_RCV_SGL_FILE[52]='P0366' FILE_STATUS_NOTE=BMS - Expected 2 files between 03:00 - 04:30 FILES_RCVD= FILES_WTNG= FILES_EXCEPTION= FILES_COUNT= |
1. set it to use bash
Code:
#!/bin/bash |
I would simplify those sed|grep|head|tail|tr|awk chains, usually you can implement it in awk using only a few line of codes.
It will also speed up that loop |
I am with pan64, especially if you use the exact same line to be stored in 2 different variables:
Code:
FILES_RCVD=$( sed -n "/${VIP_CUST_ID}/,/<\/data_block>/p" "${RTVIEW}"|grep -A4 '${FILE_STATUS_NOTE}' "${RTVIEW}"|head -4|tail -1|tr '[<>]' ' '|awk -F ' ' '{print $2}') |
All times are GMT -5. The time now is 12:10 PM. |