Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-01-2024, 10:17 AM
|
#1
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Rep: 
|
thunar rename unable to replace " ." with "."
I can't get thunar to rename a list of files that contain " ."
and replace that with "."
I tried several combos, no luck
Any ideas?
|
|
|
06-01-2024, 11:11 AM
|
#2
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.5
Posts: 5,885
|
Escape the source space…
(Show us what you tried, and the result, please)
|
|
|
06-02-2024, 10:43 AM
|
#3
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,243
|
A quick search turned up this command to remove spaces in file names in the current directory
Code:
for f in *\ *; do mv "$f" "${f// /}"; done
which works.
|
|
|
06-02-2024, 11:57 AM
|
#4
|
Senior Member
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,205
|
This will replace any instance of " ." with "." in the file name in the current directory.
Code:
rename 's/ \././g' *
|
|
|
All times are GMT -5. The time now is 04:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|