Operating System - HP-UX
1836988 Members
2328 Online
110111 Solutions
New Discussion

Re: Removing all the packages starting with VR

 
Prasad Joshi
Regular Advisor

Removing all the packages starting with VR

Hi all,

I want to remove all the packages starting with VR.

I am using following CSh script, but is is not doing my job.

foreach i in ( echo `swlist | awk '/VR/ { print $1 }'`)
echo $i
end

Can any one help?

Thanks & regards.
Prasad
2 REPLIES 2
Prasad Joshi
Regular Advisor

Re: Removing all the packages starting with VR

Hi All,

Found.

for i in `swlist | awk '/VRTS/ { PRINT $1}'`
do
swremove $i
done

Thanks & regards.
Prasad.
RAC_1
Honored Contributor

Re: Removing all the packages starting with VR

Check what is there starting with VR

swlist VR* | awk '/^# V/ {print $1}'

Check it and delete it.

for i in $(swlist VR* | awk '/^# V/ {print $1}')
do
swremove ${i}
done

All this with ksh.
There is no substitute to HARDWORK