-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to process the output files which paths contains spaces? The output can not be customized by the findimagedupes ? #20
Comments
Investigate the The
Alternatively, you can use the
You could edit that to become:
You can also supply overrides using
The |
Thank you for a detailed explanation. It helped to achieve wanted outcome. the -p or -i i have placed BEFORE ending switches (-a): run all duplicates in a program: run duplicates in a program echo (so it just prints the paths): echo 1st of the duplicates and open the rest in gwenview: remove first of the duplicate files and view the rest: remove first of the duplicate files (risky, read below): report that there is a duplicate file and place 1st of the duplicates into a certain folder: I am using $1 since the first of the duplicate paths seems to be always the one from the folder that I am supplying to the findimagedupes command using switch -a -- "$folderwithduplicates" My full command: |
I'm glad it was helpful. Note hat it is not guaranteed that files will be listed in any particular order. Personally, I would always rename the files, as you do in your 6th example, rather than deleting them immediately as you do in your 4th and 5th examples. Note also that If you just want to echo the filenames, you don't need to use your second command (
|
that is unfortunate and it does not seem that the VIEW variable accepts a condition and semicolons used in it: UPDATE: this condition may work:
Needs to define that variable $fwd before the command: |
In case it is not clear, Did you look at the output file produced with Of course, this does mean you already have to know how to write shell scripts. For general help on writing shell scripts, the findimagedupes issue queue isn't the best place to ask. I'm only one person but there is a large community of helpful people on forums such as the various Stack Exchange Q&A sites ( https://superuser.com, https://unix.stackexchange.com, https://stackoverflow.com, etc), and those sites already contain answers to many questions (and lots of example code). There are also many books and tutorials and courses if you want to learn in a more structured way. |
Hello,
1)
findimagedupes outputs:
/path/ file name뷰á _ .jpg /path/ file뷰š -name .jpeg
so when i want to:
A) remove first file
B) open all paths inside viewer "gwenview"
i can not if i am not an awk/sed poweruser. Can you please suggest how to do it? Problem is the lack of unique separator and spaces in paths. I have been asking ChatGPT, but no luck.
2)
It would be handy if there is a switch where user can define prefix, suffix and the path separator.
For example
--outprefix 'gwenview "'
--outpathseparator '" "'
--outsuffix '"'
Btw. I would expect output paths to be by default separated with quotation marks.
newline - one per line
I am sorry if this is stupid or too demanding. You have mentioned that showing usage case examples incl. more complex commands may be handy inside manual / under -h switch.
The text was updated successfully, but these errors were encountered: