Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

remove spaces in file names

Refracta Development, Scripts, etc.

remove spaces in file names

Postby stavreli » 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
stavreli
 
Posts: 10
Joined: Sat Mar 04, 2017 1:02 pm

Re: remove spaces in file names

Postby fsmithred » 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: Select all
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.
User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: remove spaces in file names

Postby stavreli » 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: Select all
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.
stavreli
 
Posts: 10
Joined: Sat Mar 04, 2017 1:02 pm


Return to Discuss

Who is online

Users browsing this forum: No registered users and 1 guest

suspicion-preferred