I’m working with Ksh shell script, im doing following thing:
for provide in $serviceProvideList
do
echo $provide
done
which prints strings as follows
xoc.memgt.ZMemger
xoc.sv.ZsitionClient
xoc.svc.Zfecycle
xoc.sw.job.temStateHook
xoc.sw.cor.ZBulkOperations
xoc.svc.Zfecycle
xoc.dw.cor.ZMemoryInfo
xoc.memgt.ZMemger
xoc.cot.ZDbug
now i have to store that string in to only one variable without duplication of strings.
Thanks in advance.
1 Answer