![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recursive FTP -- here at last. | Perderabo | Shell Programming and Scripting | 52 | 03-25-2009 12:15 PM |
| recursive copy of the directory | deepthi.s | High Level Programming | 7 | 08-23-2008 01:06 PM |
| recursive rcp | Nicol | Shell Programming and Scripting | 6 | 11-06-2003 11:52 AM |
| recursive copy of hidden files | usfrog | UNIX for Advanced & Expert Users | 2 | 02-19-2002 03:16 PM |
| Recursive FTP | aslamg | UNIX for Dummies Questions & Answers | 1 | 03-08-2001 04:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sorry, forgot to answer about the desired transformation....
either: Fl_0112.jpg -> Fl_0112_000001.jpg GB_0112.jpg -> GB_00112_000002.jpg or Fl_0112.jpg -> 00000001.jpg GB_0112.jpg -> 00000002.jpg Ideally it would be the former rather than the latter i.e. Fl_0112.jpg -> Fl_0112_000001.jpg where a number gets appended to the original filename |
|
||||
|
Hello Perderabo,
the total file count with the command is 88127. The typical folder/file structure is: with spaces ./cdell/Documents and Settings/Roki/My Documents/Exported Pics/images/Fl_0112.jpg or with square brackets ./epd/Pics/Chris/Temp Folder/665109_7_t[1].jpg To be honest, the numbers don't need to be random at all. The only reason I suggested random number is that that way I would be sure not to have a duplicate filename if concatenated with an actual filename. The goal would be to have all the 88127 files inside one folder so that I can easily remove duplicates based on md5 hash. I hope I've explained myself clearly. Many thanks again. Roki. |
|
||||
|
Hello Perderabo,
Many thanks for your help. I've magaged to find an easier solution to my issue. There is a program called Fdupes which removed duplicate files. It didn't seem to mind that the file paths/names had difficult characters. The following fdupes tutuial was useful: fdupes Tutorial Life at the CLI I've double checked the results with variations on the following command: find . -type f -exec md5sum {} \; | cut -d " " -f1 | sort | uniq ...... and both results seem to agree. Just wanted to thank you for the assistance. Best, Roki |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| recursive copy random |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|