php - Find And Replace Folder Names On Server -


i can't seem find way on dedicated server.

i've got huge directory of folders , of contain 3 dashes '---' need find , replace 1 dash.

is there easy way find , replace right on server? don't want have download folders , on desktop , re-upload them.

you this:

find  ./  -name '*'  -exec  rename  's/---/-/g'  {}  \; 

* has not been tested

src


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -