Closed gusbemacbe closed 5 years ago
Hi @gusbemacbe
Rename all SVG files and symlinks:
rename.ul '.svg' -- '-symbolic.svg' *.svg
Remap symlinks targets:
rename.ul -s '.svg' -- '-symbolic.svg' *.svg
rename
and rename.ul
are the same command.
Don't forget to delete all symlinks with symbolic suffix before renaming:
rm -f *-symbolic.svg
It worked, but few symlinks are broken due to containg -
, _
, .
and number
. I used rename
instead of rename.ul
.
That's why I wrote the second comment. You need to delete *-symbolic.svg
symlinks before.
Actually, I removed the folder symbolic
, I copied the folder 16
whose icons have no suffix -symbolic
, and pasted the folder, renaming symbolic
.
Hmm, I tested on actions/16, panel/16, and panel/22. On every folder, it works fine.
Now it worked. Firstly I use KRename, then I ran rename -s '.svg' -- '-symbolic.svg' *.svg
.
Thank you a lot!
@SmartFinn
suru-plus-colourise
?@gusbemacbe
I do nothing for now. I wait for the release.
@SmartFinn
All OK!
Ready.
@gusbemacbe ok. I'll start.
Hi @SmartFinn
Renaming the symlinks, from .svg
to -symbolic.svg
, it works, but from -symbolic.svg
to .svg
, it does not work. See the problem that @Bonandry is facing:
@gusbemacbe the correct command is rename.ul -s -- '-symbolic.svg' '.svg' *.svg
Hello @SmartFinn !
I would like to copy the folder
16
to the foldersymbolic
, but if I rename all files,including the symlinks, adding a suffix-symbolic
, all the symlinks will be broken and unrecognised due to the nonexistence of the former files which do not have the suffix-sylimk
.Is there a command line for this in terminal?