Hi Guys,
I have a unix shell script which is like this...
sqlplus -s $FEB_UID/$FEB_PWD@feb_dev |&
print -p "select '|'||job_id||'|' from jobreq where status = 'PENDING';"
print -p "exit"
while read -p LINE
do
Item1=${LINE}
print ${Item1}
done
when I run the shell script the output is
'|'||JOB_ID||'|'
------------------------------------------
|116|
|117|
|118|
|119|
|120|
|121|
I only want the nos in ITEM1 variable ? how do i do this ?
any ideas ?
Thanks
Premal
I have a unix shell script which is like this...
sqlplus -s $FEB_UID/$FEB_PWD@feb_dev |&
print -p "select '|'||job_id||'|' from jobreq where status = 'PENDING';"
print -p "exit"
while read -p LINE
do
Item1=${LINE}
print ${Item1}
done
when I run the shell script the output is
'|'||JOB_ID||'|'
------------------------------------------
|116|
|117|
|118|
|119|
|120|
|121|
I only want the nos in ITEM1 variable ? how do i do this ?
any ideas ?
Thanks
Premal