Hello, I am trying to implement the below in a script but the escape characters are not working for the regular expressions:
ssh -n oracle@lnx123 "cd /fmw/admin/scripts/instances/extapp_wt_inst[1-2]/config/OHS/extapp_ohs[1-2]/abcdocs ; touch outage.html " 2>/dev/null
I need to run this on sets of two servers, with the below paths -
I have tried the below using the escape characters but still no luck:
ssh -n oracle@lnx164 "cd /fmw/admin/scripts/instances/\extapp_wt_inst\\[1-2\\]\/config/OHS/extapp_ohs\\[1-2\\]/abcdocs "
Please let me know how I can correct this?