G
G
Green_planet2020-06-09 14:36:58
Windows Server
Green_planet, 2020-06-09 14:36:58

How to rename folders by removing the dot "."?

There was a file dump on Windows 1.5tb. Users were on both centOS and Windows. Due to linux users, directories with a dot at the end of the name have accumulated in the exchange, for example "New_folder." For windows, the dot special character "." critical. Folders won't open. On the command line, mostly utilities for mass file manipulation.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Green_planet, 2020-06-10
@grin_planet

I decided. Through a high-level programming language. Thanks for the advice.

M
mayton2019, 2020-06-09
@mayton2019

Consider that renaming is also an ambiguous operation. For example, you had a folder

/svn
/.svn

and after renaming, your files from dot-svn merge with svn with all the consequences. With rewriting
and loss of the necessary files.

C
CityCat4, 2020-06-09
@CityCat4

Write a script that checks the file name using a regular expression and renames all those selected with a dot at the end, discarding the dot. Everything is written in bash in half an hour maximum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question