MAMEWorld >> The Loony Bin
View all threads Index   Flat Mode Flat  

GatKongModerator
Tetris Mason
Reged: 04/20/07
Posts: 5907
Loc: Sector 9
Send PM
Awesome Unix "diff" command
09/02/11 03:48 AM


Never knew this command existed... but it rules.

I'm TRYING to clean up all our video files from two computers, and the camcorder... and its a mess... literally thousands of files, duplicates everywhere, incomplete sets everywhere. I fingered there must be an easy way to sort this out, so I googled "compare directories" and bam... punched me in the nose.

Unix command:

diff -rq dir1 dir2

where r is recursive, q is quick (meaning don't compare file contents just file names).

Easy cheesy. Quickly created a master set of files, deleted all the redundant garbage, saved hundreds of gigabytes of wasted memory, and can confidently erase my camcorder's memory in prep for tomorrows vidography of Bounty Hunter.












Entire thread
Subject Posted by Posted on
* Awesome Unix "diff" command GatKongModerator 09/02/11 03:48 AM
. * On this topic... Mojo2000  09/07/11 11:58 AM
. * Re: On this topic... TheBigAmbulance  09/07/11 03:33 PM
. * Re: On this topic... Pi  09/07/11 12:43 PM
. * Re: On this topic... Mojo2000  09/07/11 02:26 PM
. * Probably Pi  09/07/11 03:10 PM
. * Re: Awesome Unix "diff" command keshbach1  09/03/11 03:00 AM
. * Re: Awesome Unix "diff" command krick  09/03/11 06:52 AM
. * Re: Awesome Unix "diff" command TheBigAmbulance  09/02/11 04:01 AM
. * Re: Awesome Unix "diff" command StilettoAdministrator  09/02/11 08:36 PM
. * Re: Awesome Unix "diff" command igamabob  09/02/11 11:16 PM
. * Ain't that the truth... TheBigAmbulance  09/02/11 11:18 PM

Extra information Permissions
Moderator:  GatKong 
0 registered and 232 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1451