CLI Example: Find and Replace Catalog Text
You can find and replace text for catalog objects programmatically using the Catalog Manager command line interface. For example, you can write a script to rename folders, files, workbooks, and other objects in the catalog.
Syntax to Find and Replace Text
runcat.sh -cmd replace -online <Oracle Analytics Cloud URL>
-folder <root folder to start find>
textreplace -old "<string to replace> -new "<new string>"
-credentials <file with login username and password>
Example
In this example, you rename a catalog folder with the name Revenue. The new folder name is Sales Reports:
runcat.sh -cmd replace -online "https:/myoac.ocp.oraclecloud.com/analytics-ws" -folder "/Shared Folders/North America" textreplace -old "/Shared Folders/North America/Revenue" -new "/Shared Folders/North America/Sales Reports" -credentials /scratch/mycredentials.txt
Where the credentials file contains the rows:
login=<userid>
pwd=<password>