GatKong |
Tetris Mason
|
|
|
Reged: 04/20/07
|
Posts: 5908
|
Loc: Sector 9
|
|
Send PM
|
|
|
Awesome Unix "diff" command
#263680 - 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.
|
|
|
|
Re: Awesome Unix "diff" command
[Re: GatKong]
#263683 - 09/02/11 04:01 AM
|
|
|
Yeah, there are some REALLY cool ways to do things in Unix/Linux that can't really be done that well in Winders.
I would switch completely if I didn't do gaming in Windows.
|
|
|
Stiletto |
They're always after me Lucky ROMS!
|
|
|
Reged: 03/07/04
|
Posts: 6472
|
|
|
Send PM
|
|
|
Re: Awesome Unix "diff" command
[Re: TheBigAmbulance]
#263762 - 09/02/11 08:36 PM
|
|
|
> I would switch completely if I didn't do gaming in Windows.
Amen to that!
- Stiletto
|
|
|
|
Re: Awesome Unix "diff" command
[Re: Stiletto]
#263776 - 09/02/11 11:16 PM
|
|
|
All the different flavors of *nix that are all...kind of...compatible is a bit off-putting too.
|
Minutus cantorum, minutus balorum, minutus carborata descendum pantorum.
|
|
|
Ain't that the truth...
[Re: igamabob]
#263777 - 09/02/11 11:18 PM
|
|
|
|
|
Re: Awesome Unix "diff" command
[Re: GatKong]
#263786 - 09/03/11 03:00 AM
|
|
|
If you want a nice gui diff tool on Windows try Araxis Merge.
www.araxis.com
Kevin Eshbach
|
|
|
|
Re: Awesome Unix "diff" command
[Re: keshbach1]
#263812 - 09/03/11 06:52 AM
|
|
|
|
|
On this topic...
[Re: GatKong]
#264126 - 09/07/11 11:58 AM
|
|
|
I am in the habit of collecting and/or modifying wallpapers for my own desktop background use. 1920x1080. It's really silly when you get right down to it, since I rarely even see my desktop (I keep my puter on 24/7/365 if I can help it, and my program or directory windows stay open).
Anyway, the way I have been backing them up is: 1) have SuperCopier 2 running in the background (autostarts with Windows), where the default behaviour is to Rename New File. Sure as hell beats standard Windows copy behavior, e.g. stops everything in case of error. 2) Copy files. 3) Run DoubleKiller on the target directory.
So the end result is: - completely new files get copied over - identically named (but updated or otherwise changed) files get copied over with new filenames - truly identical doubles (with new filenames) get removed.
Contrived perhaps, but the goal is accomplished.
What do you call this kind of backup, and what sort of freeware or payware is recommended to do this automatically/efficiently?
|
|
|
Pi |
Allergic to life
|
|
|
Reged: 09/20/03
|
Posts: 6449
|
Loc: Room 101
|
|
Send PM
|
|
|
Re: On this topic...
[Re: Mojo2000]
#264128 - 09/07/11 12:43 PM
|
|
|
> What do you call this kind of backup, and what sort of freeware or payware is > recommended to do this automatically/efficiently?
rsync. another unix beauty. you should be able to find windows binaries around (I have one running but don't remember where i got it), and with careful doc reading you should be able to reproduce that behaviour.
|
Wound up, can't sleep, can't do anything right, little honey / Oh, since I set my eyes on you. / I tell you the truth. I can't get it right / Get it right / Since I met you...
|
|
|
Re: On this topic...
[Re: Pi]
#264132 - 09/07/11 02:26 PM
|
|
|
> > What do you call this kind of backup, and what sort of freeware or payware is > > recommended to do this automatically/efficiently? > > rsync. another unix beauty. you should be able to find windows binaries around (I > have one running but don't remember where i got it), and with careful doc reading you > should be able to reproduce that behaviour.
In other words, you're saying that if I mess up a CLI command by just one keypress, I'll reproduce the behaviour of an enraged ape?
|
|
|
Pi |
Allergic to life
|
|
|
Reged: 09/20/03
|
Posts: 6449
|
Loc: Room 101
|
|
Send PM
|
|
|
Probably
[Re: Mojo2000]
#264136 - 09/07/11 03:10 PM
|
|
|
> In other words, you're saying that if I mess up a CLI command by just one keypress, > I'll reproduce the behaviour of an enraged ape?
Same as if you tick the wrong checkbox in a GUI app
|
Wound up, can't sleep, can't do anything right, little honey / Oh, since I set my eyes on you. / I tell you the truth. I can't get it right / Get it right / Since I met you...
|
|
|
Re: On this topic...
[Re: Mojo2000]
#264138 - 09/07/11 03:33 PM
|
|
|
A freeware app I have used is called SyncBack. It acts similar to rsync.
|
|
|