• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

perl gurus: script to find all duplicate filenames?

endervalentine

Senior member
I'm new to perl and what I'm trying to do is to write a script that would search a specified directory and all it's subdirectories and output the files that have the same filenames. I do have a script written in bash that would spit out the files with the same chksum using sort|uniq but I can't figure out a way to do it by filenames and it has to be in perl.

:edit: updated for original problem.
oops, figured out the directory part, needed to escape the $ from the awk command.
this worked.
@dir=`ls -l | grep ^d | awk '{print \$8}'`;
 
Back
Top