Sponsored Content
Top Forums Shell Programming and Scripting Bash Script to find/sort/move images/duplicate images from USB drive Post 302921356 by migurus on Thursday 16th of October 2014 02:34:39 PM
Old 10-16-2014
I use SHA to identify dups, too. I'd collect all existing files with their hashes by doing something along these lines:

Code:
 (
 for f1 in $( find $PHOTOS -type f -name "*.jpeg" ); do
        shasum $f1;
done
 ) > EXISTING;

then I would get new SHA and grep against existing to discard incoming dups.
 

9 More Discussions You Might Find Interesting

1. AIX

where to get .bm or .pm images

I'm just trying to get a personal picture for a backdrop on my AIX user account at work. Where does one acquire the .bm or .pm files. How do I create them as an unpriveledged user? There are quite a few jpeg's that I would like to use. (0 Replies)
Discussion started by: trigggl
0 Replies

2. Solaris

Flar Images

I once found a document on the web describing how to build partition flar images instead of having just the one large one. I have managed this but am having problems extracting the subsequent flar archives. I ahve built the system from a jumpstart server and now need to add the program images etc... (0 Replies)
Discussion started by: 58fairlane
0 Replies

3. Shell Programming and Scripting

Drive backup Images

About once a year I update my scripts and make little tweeks. This is my latest... #! /bin/bash # # OS: Unix/Linux # Name: hda-to-hdc # Ver: 03/01/08 # Purpose: Full disk image copy # By: Jan Zumwalt - www.neatinfo.com - root directory list # # REMARKS: # I use... (1 Reply)
Discussion started by: jwzumwalt
1 Replies

4. Shell Programming and Scripting

Find all images, append unique prefix to name and move to different directory

Hi, I have a directory with Multiple subdirectories and 1000s of pictures (jpg) in each directory. The problem is that each directory has a 001.jpg in them. I want to append a unique name (the directory_name)would be fine. and then move them to one main backup directory once they have been... (1 Reply)
Discussion started by: kmaq7621
1 Replies

5. Shell Programming and Scripting

How to find & auto resize images?

I need a command or mini scripts that can find certain type of images file recursively from the current dir with files of minimum 736 width and resize them by "736 max width, relative height" and replace the source files. I currently have GD installed but can also install Imagemagick if needed, I'm... (5 Replies)
Discussion started by: Frozen77
5 Replies

6. UNIX for Dummies Questions & Answers

How to find string of file name of images?

Hi & good day, How to use find correctly ? I have several folders, _img1, _img2 etc. Then I want to use the find command to find part of an image name, such as: the string ”modern” which is (at least) in: ”_img2/modern_world2PS220.jpg” Also I want to know _in which folder_ it... (10 Replies)
Discussion started by: OmarKN
10 Replies

7. Shell Programming and Scripting

Need to add Birthday images inside shell script

Hi All- I have written a shell script to send birthday wish mail to all my colleagues. I need help from you all in two things, 1. I need to add some 17 birthday images as my team size is 17 i want to send different images for everyone. (I dont know how to do it) 2. I need to send mail... (4 Replies)
Discussion started by: ChandruBala73
4 Replies

8. Shell Programming and Scripting

Script to isolate unused images in website

Hi I am sorry if I am in the wrong place! I have been looking for a way to isolate and FTP out of the server hundreds of images which are no longer doing anything there, that is, that are not linked to any page. The only thing I found (free) was the following script. If I am useless at... (7 Replies)
Discussion started by: qim
7 Replies

9. Shell Programming and Scripting

Creating a script to download images from multiple cameras using ghoto2

I should start by saying that I am totally new to linux... I am trying to create a script that downloads images from multiple cameras into a specific folder on my machine. Ideally renaming the images as they are downloaded. I have installed gphoto2 which as a command line interface that... (0 Replies)
Discussion started by: benpems
0 Replies
diskd(1)						      General Commands Manual							  diskd(1)

Name
       diskd - disk daemon; wait for disk to be inserted

Note
       This  manpage has been automatically generated from fdutils's texinfo documentation.  However, this process is only approximative, and some
       items, such as cross-references, footnotes and indices are lost in this translation process.  Indeed, these items have no appropriate  rep-
       resentation  in	the  manpage  format.  Moreover, only the items specific to each command have been translated, and the general information
       about fdutils has been dropped in the manpage version.  Thus I strongly advise you to use the original texinfo doc.

       *      To generate a printable copy from the texinfo doc, run the following commands:

		     ./configure; make dvi; dvips fdutils.dvi

       *      To generate a HTML copy,	run:

		     ./configure; make html

	      A pre-made HTML can be found at: `http://www.tux.org/pub/knaff/fdutils'

       *      To generate an info copy (browsable using emacs' info mode), run:

		     ./configure; make info

       The texinfo doc looks most pretty when printed or as HTML.  Indeed, in the info version certain examples are difficult to read due  to  the
       quoting conventions used in info.

Description
       The diskd command has the following syntax:

	  diskd [-d drive] [-i interval] [-e command]

       Diskd  waits for a disk to be inserted into a given drive, and then either executes the command or exits. This program can be used to auto-
       matically mount a disk as soon as it is inserted.

Warning
       This program works by switching the motor on for a very short interval, and then seeking to track -1. This might  damage  hardware  in  the
       long  run.  Amigas,  which  also  use these techniques, are known for having problems with their disk drives no longer spinning up properly
       after a few month of usage.

Options
       -d drive
	      Selects the drive to observe for disk insertion. By default, drive 0 (/dev/fd0) is observed.

       -i interval
	      Selects the polling interval. The interval is given in tenths of seconds. Default is 10 (one second).

       -e command
	      Gives the command to be executed when a disk is inserted. If no command is given the program simply exits.  Typically,  the  command
	      mounts the disk. It can be a shell scripts which probes for several filesystems and disk geometries until it succeeds.

Bugs
       *      Automatic  unmounting  cannot yet be handled. It is indeed not enough to scan for disk removal, because when the disk is removed, it
	      is already too late: There might be some buffers needing flushing.  However, the fdmountd program  allows  automatic  unmounting	by
	      using the SYNC mount options, which switches off write buffering (see section  fdmount).

       *      The drive motor is running all the time, and on some computers, the drive led flickers at each time the drive is polled.

See Also
       Fdutils' texinfo doc

fdutils-5.5							      03Mar05								  diskd(1)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy