Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I replace underscores and __ with a space in a page name?

Iliya Bolotyansky January 12, 2018

Hi, 

How can I replace underscores and two consecutive underscores (__) with a space in a page name, using a  Confluence CLI query? What I'd like to do, is take a parent page, and update all the child-page names under it, replacing underscores and (__).

Thanks very much,
Iliya


1 answer

0 votes
Deleted user February 18, 2019

Hi @Iliya Bolotyansky ,

 

Could you try the below command and modify the space name and page name accordingly.

--action runFromPageList --space "SRAVYA" --title "Home page" --regex ".*_.*" --descendents --common "--action renamePage --space SRAVYA --title \"@title@\" --findReplace \"_:' '\""

 

Let us know if this is not working for you.

 

Regards,

Sravya

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events