Hello,
i 've go a file with the following text:
oracle@das (J005) 0
oracle@das (J008) 0
oracle@das (J050) 0
oracle@das (J038) 0
oracle@das (J105) 0
oracle@das (J058) 0
oracle@das (J088) 0
oracle@das (J090) 0
oracle@das (J032) 1
oracle@das (J113) 0
oracle@das (J121) 0
httpd@MANAGED-UAS1 (TNS V1-V3) 0
oracle@das (J002) 0
I tried numerous ways with sed to remove only any space which happen to be in the parenthesis only ().
Such that:
httpd@MANAGED-UAS1 (TNS V1-V3)
Will have:
httpd@MANAGED-UAS1 (TNSV1-V3)
i've tried:
cat test.txt | sed -e 's/([(^)]*)//g'
perl -p 's{(\( .*? \))}{$1 =~ y/ //dr}gex'
sed -e 's/([(^)]*)( )/\1/'
But none seems to work. Any thoughts or hints?
Rgds,