You are not logged in.
Say we have a file named "abc 123.pdf", what could we put into Command in Custom Actions to rename it to "abc_122.pdf"?
Thank you very much!
Offline
Here is one way:
First, create a script file with the following content:
#!/bin/bash
for f in "$@"
do
mv "$f" $(echo "$f" | sed -e 's/ /_/g')
done
...and make the file executable and save it somewhere in your PATH. For the sake of this example, lets call it /usr/local/bin/sp.
Then create a Thunar custom action with the following command:
sp %F
...and make sure to select all options on the Appearance Conditions tab.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
if you have the "rename" command (written in perl), it can apply a pcre to the names of globs of files. for example:
rename -v 's/ /_/' *
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 536.05 KiB (Peak: 550.52 KiB) ]