APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Deleting duplicate files

© December 2005 Tony Lawrence

I recently did a "Basics" post at aplawrence.com about Undoing bad archive extracts. Simply put, it's about cleaning up the mess of accidentally creating files where you don't want them and how to get rid of them.

Later, I came across a MacOSXHints.com hint that does something similar in a graphical way.

So, let's say you unzipped a bunch of files in a place you don't want them because there were already files there and you really wanted the new files in a new, empty directory. Create that new directory and unpack the files again. Now "Select all", and Apple-C or "Copy" from the edit menu and Click Apple-V or Edit->Paste, or just drag 'em to the messed up directory, then "Apply to all" and "Replace". Finally, "Edit->Undo Copy" and the unzipped files are gone, but still available in the new directory where you really want them.

I'm not sure if this behavior is entirely expected, but it's logical. There is at least one "gotcha": if you have any file names beginning with ".", the Finder will stop and complain about the file being "invisible" and then will not continue.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> Deleting duplicate files

Inexpensive and informative Apple related e-books:

Take Control of Automating Your Mac

Take Control of the Mac Command Line with Terminal, Second Edition

Photos: A Take Control Crash Course

Are Your Bits Flipped?

Take Control of High Sierra

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

A computer once beat me at chess, but it was no match for me at kick boxing. (Emo Philips)

Linux posts

Troubleshooting posts

This post tagged:

Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode