thx a stack Feherke,
This works!
export JOB_STREAM="SCC_DAILY_UPDATE"
export SERVICE_NAME=""
SERVICE_NAME=$(awk '$1==x {print $2}' x="${JOB_STREAM}" service_stream_mapping.dat)
echo $SERVICE_NAME
I'm a PL/SQL programmer and dislike doing anything in unix shell (may have to change due to...
I have a file, service_stream_mapping.dat, made of two columns, which looks something like this:
PROCESS_A DAILY_UPDATE
PROCESS_B DAILY_UPDATE
PROCESS_C WEEKLY_UPDATE
PROCESS_D MONTHLY_UPDATE
PROCESS_E WEEKLY_UPDATE
I would like to search the file using awk with a string that occurs somewhere...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.