duplicate files
How can I find a list of files that are named duplicates i.e. have same name but in different case that exist in the same directory?
|
Hi and welcome to LinuxQuestions!
From the top-level directory (if you need to descend recursively into a directory tree) you might try: Code:
find | uniq -id |
Quote:
I think the first thing to note is that "same name but in different case" is actually something of an oxymoron. If the case is different, they do not have the same name. E.g. hello and HeLLO are two different names. The closest I've been able to get is this Code:
mike@continuity:/tmp$ touch hello Code:
mike@continuity:/tmp$ find . -iname hello 2>/dev/null |
Quote:
when the process is finished, and you are looking for file 'gobbledigook' run Code:
locate gobbledigook updatedb runs as a cron job and executes every day at 10 PM. |
Quote:
Quote:
Code:
locate -i gobbledigook Quote:
|
Quote:
Quote:
|
<<mod edit: Advertising deleted>>
|
Baresi;
Do not post advertising links---especially ones advertsing Windows SW!! |
All times are GMT -5. The time now is 08:23 AM. |