Operating System - HP-UX
1825756 Members
2372 Online
109687 Solutions
New Discussion

comparing and deleting a files

 
ajayajay
Occasional Advisor

comparing and deleting a files

HI,i am new to perl

I have 2 Directories a & b. I need to compare these 2 Directories if both directories containts same files dont want to delete a files if one of the directory containts extra files than delete that file.
using PERL script

Can anyone please help me do this.
2 REPLIES 2
Court Campbell
Honored Contributor

Re: comparing and deleting a files

Do my eyes deceive me or do you already have this thread open:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1114881
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
ajayajay
Occasional Advisor

Re: comparing and deleting a files

hi sir,
mr Dennis Handly given this link so i forworded my Question to this link.... pls help me...