Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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


Comment on Re: Finding un-paired files in a directory
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
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 chilling in the Monastery: (12)
As of 2015-07-08 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls