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 ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found