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
SHASUM(1)						 Perl Programmers Reference Guide						 SHASUM(1)

NAME
shasum - Print or Check SHA Checksums SYNOPSIS
Usage: shasum [OPTION] [FILE]... or: shasum [OPTION] --check [FILE] Print or check SHA checksums. With no FILE, or when FILE is -, read standard input. -a, --algorithm 1 (default), 224, 256, 384, 512 -b, --binary read files in binary mode (default on DOS/Windows) -c, --check check SHA sums against given list -p, --portable read files in portable mode produces same digest on Windows/Unix/Mac -t, --text read files in text mode (default) The following two options are useful only when verifying checksums: -s, --status don't output anything, status code shows success -w, --warn warn about improperly formatted SHA checksum lines -h, --help display this help and exit -v, --version output version information and exit The sums are computed as described in FIPS PUB 180-2. When checking, the input should be a former output of this program. The default mode is to print a line with checksum, a character indicating type (`*' for binary, `?' for portable, ` ' for text), and name for each FILE. DESCRIPTION
The shasum script provides the easiest and most convenient way to compute SHA message digests. Rather than writing a program, the user simply feeds data to the script via the command line, and waits for the results to be printed on standard output. Data can be fed to shasum through files, standard input, or both. The following command shows how easy it is to compute digests for typical inputs such as the NIST test vector "abc": perl -e "print qw(abc)" | shasum Or, if you want to use SHA-256 instead of the default SHA-1, simply say: perl -e "print qw(abc)" | shasum -a 256 Since shasum uses the same interface employed by the familiar sha1sum program (and its somewhat outmoded anscestor md5sum), you can install this script as a convenient drop-in replacement. AUTHOR
Copyright (c) 2003-2008 Mark Shelor <mshelor@cpan.org>. SEE ALSO
shasum is implemented using the Perl module Digest::SHA or Digest::SHA::PurePerl. perl v5.12.5 2013-08-25 SHASUM(1)
All times are GMT -4. The time now is 10:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy