Switch to full style
Refracta Development, Scripts, etc.
Post a reply

remove spaces in file names

Sun Apr 09, 2017 6:09 pm

Hi,
Can you share the script that you use in the file manager to remove spaces in file names? :D

Re: remove spaces in file names

Sun Apr 09, 2017 11:21 pm

It's not a script; it's a thunar custom action. In Thunar, go to Edit -> Configure custom actions -> Remove Spaces, and then click on the edit icon if you want to change it. The command is
Code:
rename 's/ /_/g' %N


That's a trimmed-down version of a custom action I found in a thread at forums.debian.net called "Post your thunar custom actions here" or something like that. The original also removed special characters. LOTS of good ideas in that thread.

Re: remove spaces in file names

Tue Apr 18, 2017 8:22 am

thank you :)

fsmithred wrote:It's not a script; it's a thunar custom action. In Thunar, go to Edit -> Configure custom actions -> Remove Spaces, and then click on the edit icon if you want to change it. The command is
Code:
rename 's/ /_/g' %N


That's a trimmed-down version of a custom action I found in a thread at forums.debian.net called "Post your thunar custom actions here" or something like that. The original also removed special characters. LOTS of good ideas in that thread.
Post a reply