Finding duplicate directories
This simple task is proving harder then imagined. I have a multi-level directory that i'm trying to clean of duplicates, but I can't get 'find' to print what I need to see. To give an illustrative example, here is a dir:
Code:
stuart@stuart:~/testdir$ ls * Code:
stuart@stuart:~/testdir$ ls -d */ | head -1 | find . "`cat`" -type d |
does this do what you want?
Code:
find . -type d -name dir1 -print |
Yes - thankyou!
I actually know to use -name, (oops!), but screwed it up using the * wildcard. The -print option i'll look up in the man pages. |
All times are GMT -5. The time now is 10:34 AM. |