Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Finding un-paired files in a directory

by mce (Curate)
on Dec 03, 2003 at 12:49 UTC ( #311885=note: print w/replies, xml ) Need Help??


in reply to Finding un-paired files in a directory

Hi,

If this is the only thing you want to do, I would use bash

for i in *did; do [ ! -f ${i%\.did}.mrg ] && echo $i; done
(Don't take this post to serious, I would -of course- go for perl if I need to do more than just display the files)
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-03-26 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?