Linux - Want To Check For Possible Duplicate Directories (Probably RegEx Needed)
Posted
by NoLongerHere
on Stack Overflow
See other posts from Stack Overflow
or by NoLongerHere
Published on 2010-05-13T14:30:01Z
Indexed on
2010/05/13
14:34 UTC
Read the original article
Hit count: 238
Hi,
I have a directory which contains several directories as follows:
/Music/
/Music/JoeBlogs-Back_In_Black-1980
/Music/JoeBlogs-Back_In_Black-(Remastered)-2003
/Music/JoeBlogs-Back_In_Black-(ReIssue)-1987
/Music/JoeBlogs-Thunder_Man-1947
I want a script to go through and tell me when there are 'possible' duplicates, in the example above it would pick up the following as possible duplicates from the directory list:
/Music/JoeBlogs-Back_In_Black-1980
/Music/JoeBlogs-Back_In_Black-(Remastered)-2003
/Music/JoeBlogs-Back_In_Black-(ReIssue)-1987
1) Is this possible?
2) If so please help!
© Stack Overflow or respective owner