"Fossies" - the Fresh Open Source Software Archive

Member "ftwin-master/EXAMPLES" (15 Feb 2015, 1741 Bytes) of package /linux/privat/ftwin-master.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 The following command line will report duplicate pictures:
    2 - using libpuzzle ( -I)
    3 - whose sizes are greater than 8192 bytes ( -m 8192 )
    4 - found recursively ( -r)
    5 starting in your home directory.
    6 
    7 ftwin -m 8192 -v -r -I ${HOME} | less
    8 
    9 ------------------------------------------------------------------------------
   10 
   11 This line will report duplicate files (no more in "image mode", but according
   12 to their content) whose extension is .txt and that are not in a .svn directory:
   13 
   14 ftwin -e ".*/\.svn/.*" -w ".*\.txt$" -v -r ${HOME}
   15 
   16 ------------------------------------------------------------------------------
   17 
   18 If you're importing pictures from an external device and you want to erase
   19 duplicates:
   20 mkdir "${HOME}/tmppix"
   21 cp /media/SDCARD/*JPG "${HOME}/tmppix"
   22 
   23 ftwin -r -v -w ".*\.(jpe?g)$" -c -p "${HOME}/tmppix" -s "," "${HOME}" | tee log
   24 
   25 -r to recurse subdir
   26 -v for verbose mode
   27 -w ".*\.(jpe?g)$" to limit the information collecting to filename that match
   28    this regexp.
   29 -c to make the previous regexp case unsensitive.
   30 -p "${HOME}/tmppix" for displaying these files first in the duplicate report.
   31 -s "," to separate duplicates with "," character.
   32 
   33 Then you may select files to remove by using a shell line like the following:
   34 cut -d"," -f1 -s < log | grep "tmppix" | while read FILE; do rm -f "${FILE}" ; done
   35 
   36 ------------------------------------------------------------------------------
   37 
   38 You might try the following command to find duplicates independantly from
   39 resizing, recompressing, recoloring, slighly modifying operations.
   40 
   41 ftwin -r -v -I -p "${HOME}/tmppix" -s "," "${HOME}" | tee log
   42 
   43 -I will run ftwin in image comparison mode (using libpuzzle).
   44 
   45 
   46 ------------------------------------------------------------------------------