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}'`;
: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}'`;