Warning: session_start(): open(/tmp/sess_t84r833jbdruo1i6d2pc9sakq2, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
one.sh search & delete duplicate files openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  .- Knowledge Base  . 

one.sh search & delete duplicate files

   1.3  

KDE System Tool

Score 78%
deftdeft
deft.de
Home
one.sh search & delete duplicate files
zoom


Link:  http://wiki.eye-t.de
Downloads:  1325
Submitted:  Jan 21 2007
Updated:  Nov 27 2008

Description:

A GUI/Dialog to search for duplicates of files. This check depends on MD5, not on file-name. It searchs all folders of an given path an deletes (if you wish) all duplicates and resulting empty folders. You can define a file-extension or search for * and so on in KDE-Dialog.

Everthing happens due to using this script is not under my responsibility.

Its useful to test it in a dir with copies of your files. Don't use it in program-folders - it's useful just for your Musik-, Picture-, Movie- or Documents-Folders.




Changelog:

1.3.1-beta-testing NOT for USE!!!
1.3 Reduced Dialog-Windows and add a readme.
1.2 1st version
1.1 buggy ...

ToDo's:
- Cancel-Buttons in Progress.
- Copy or Symlink as option.
- Edit Del-List in Script. Edit during runtime with an editor is possible.
- Progress-Bar while counting - any idears?
- Rename/Move instead of delete.




LicenseGPL
(KDE-Dialog in Shell Script to find duplicates)
(V. 1.3.1-beta-preview (for testing - not for use!))
Send to a friend
Subscribe
Other  Content  from deft
Report inappropriate content



-
.

 dude

 
 by bsander on: Jan 22 2007
 
Score 50%

if you need three screenshots to display the process, you really need to cut down on the dialogs..


Reply to this

-
.

 Re: dude

 
 by deft on: Jan 22 2007
 
Score 50%
deftdeft
deft.de
Home

hmm, it seem's that i'am infected with some kind of M$-Virus...confirming the confirmation of a confirmation. You're right. During my "Changing a shell-script to a KDE-Dialog" i used the mesages to "echo" the variables and "see" the startpoint of every function. It's all done by try and error...

Thanks for the hint. ;)


Ever seen a "blue screen"?
Reply to this

-

 Link?

 
 by brcha on: Jan 22 2007
 
Score 50%

I agree with bsander that there are too many dialogs. But I guess that can be cut down easily.

One suggestion. Maybe it would be nice if you offered an option to symbolic link the files to the "master file" (what ever that is). If you search the .mp3s, it is ok to delete the dupes. But if you search your programming directories, it is probably smarter to symlink libtool.sh to some /usr/.../libtool.sh than to delete them all :)


Reply to this

-

 Re: Link?

 
 by deft on: Jan 22 2007
 
Score 50%
deftdeft
deft.de
Home

Yap. That's what i meant with the Point "Link" in the ToDo.
My Idea of using the script was (at first) to reduce the size of my mp3-collection...
Set Symlinks instead of deleting makes sense... i'll try my very best - hopefully i'll find time for that.

Please excuse my bad english...


Ever seen a "blue screen"?
Reply to this

-

 hint

 
 by panzi on: Mar 4 2007
 
Score 50%

I wrote a similar tool a while ago. I used python and did this: I first used the file size as key. this is very fast and sorts many files out. then I made a sha1/md5 (chooseable) sum and used that as key and then the remaining collisions where binary compared (optinal).

the thing with the file size speeds the process up a lot! ;)


Reply to this

-

 Re: hint

 
 by deft on: Mar 6 2007
 
Score 50%
deftdeft
deft.de
Home

Yap, this makes sense! I'll try bring it in my script!

But my actual problem is: file name with spaces...

... and building links ... cause:

if i change the IFS to anything else than a "whitespace" DCOP failed with the gauge - ok - a gauge isnt'that necassary...

So, the next step is a "ln -s"-function.

a basicly working version is done - hopefully i bring it to a "testing"-state

Thx 4 ur reply - jens


Ever seen a "blue screen"?
Reply to this

-

 Re: Re: hint

 
 by panzi on: Mar 6 2007
 
Score 50%

But my actual problem is: file name with spaces...

That was one of the reasons why I did choose python. ;)
That and pythons nice & fast dictionaries (hashtables).

If you want to take a look at it, here is my script: http://twoday.tuwien.ac.at/pub/stories/255295/


Reply to this

-

 Re: Re: Re: hint

 
 by deft on: Mar 8 2007
 
Score 50%
deftdeft
deft.de
Home

thx 4 the link, helpful 4 me ;)


Ever seen a "blue screen"?
Reply to this

-

 great!!!

 
 by fireedo on: Mar 4 2007
 
Score 50%
fireedofireedo
linux

this is exactly what I need :)
I have thousand mp3's files and a lot of them are duplicated and with your script I can find it without doin' "dirty" job by find it one by one....
thanx a lot


Reply to this

-

 Re: great!!!

 
 by deft on: Mar 6 2007
 
Score 50%
deftdeft
deft.de
Home

Thank's for your reply!

That's what i made it for. Having a song multiple times in amarok still drives me crazy ;)

I hope everthinks works well with my script on your machine :)

greetz from berlin - jens


Ever seen a "blue screen"?
Reply to this

-

 Editing the delete list

 
 by dar38 on: Jan 5 2009
 
Score 50%

Hello,
if anybody cares, I wrote a simple patch for editing the list of the files to be deleted. Here it is
[code]
--- one.sh 2009-01-05 11:52:50.000000000 +0100
+++ myone.sh 2009-01-05 11:52:50.000000000 +0100
@@ -114,6 +114,26 @@
echo "Duplicates: $u" >> ./diff.kjo
echo " " >> ./diff.kjo
kdialog --title "All multiple Files" --textbox diff.kjo 800 600
+
+
+ONEEDITOR=kate
+MODIFY=yes
+until [ $MODIFY = "no" ]; do
+FILENAME="loesch_liste.kjo"
+x=`kdialog --title "Keep just one!" --inputbox "Would you like to edit the list
?" "no"`
+if test "$x" = "yes"; then
+MODIFY="yes"
+kdialog --title "Keep just one!" --msgbox "Please edit the difference file.
+Be careful, don't forget to save the file after editting. "
+$ONEEDITOR $FILENAME
+else
+MODIFY="no"
+fi+
+
+
+
x=`kdialog --title "Keep just one!" --inputbox "Please enter yes to delete $u f
iles!" "no"`
if test "$x" != "yes"; then
kdialog --title "Keep just one!" --msgbox "Nothing happens to your files
"
[/code]
+done


Your dog barks at night ? Solution [url]http://taistoiathos.free.fr[/url]
Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team