peskysushi
New Member
I am current counting files of the form ??-????-????-?.prt on root using the following syntax:
[~] find / -iname "??-????-????-?.prt" | wc -l
It works, and returns a number, but I am not sure this gives me a recursive search count or not.
I also want to be able to count duplicates of this file type so I can eliminate them from the total count.
I also tried to take the output and save it to a file. prt_files.txt,
find /na-* -name "??-????-????-?.prt" >> /na-projects8/prt_files.txt
then i sorted the output sort and use uniq -d to identify the duplicates, but still came back with zero duplicates. Not sure why it isn't working.
Thanks
[~] find / -iname "??-????-????-?.prt" | wc -l
It works, and returns a number, but I am not sure this gives me a recursive search count or not.
I also want to be able to count duplicates of this file type so I can eliminate them from the total count.
I also tried to take the output and save it to a file. prt_files.txt,
find /na-* -name "??-????-????-?.prt" >> /na-projects8/prt_files.txt
then i sorted the output sort and use uniq -d to identify the duplicates, but still came back with zero duplicates. Not sure why it isn't working.
Thanks
Last edited: