For my query I have used the below query
// store the file location
parameter “filename” = “C:\Users\IBM_ADMIN\Desktop\install_config.txt”
//Prompt the window
//action parameter query “QRadar” with description " IP of the server: "
//Test appendfile
//appendfile {parameter “QRadar” of action}
// iterate through the file replacing lines as necessary
appendfile {concatenation “%0d%0a” of ( if (it starts with “ConfigurationServer=”)then (“ConfigurationServer=88.99.33.66” else it as string) of lines of file (parameter “filename”)}
// backup the old file (first delete any old backup files)
delete “{parameter “filename”}.bak”
move “{parameter “filename”}” “{parameter “filename”}.bak”
// replace with the new file
move __appendfile “{parameter “filename”}”
the above command is working fine and changing the “ConfigurationServer=” value as “ConfigurationServer=88.99.33.66”
but I need one more request want to edit like below
“(second line also want to edit the value like “from (ConfigurationServerPort=2222) to ConfigurationServerPort=3333”)”
is there any parameter(and, or, if) have to use,
please suggest me on the same,
Thanks,
Nagaraj,