Hi Gurus,
Below command give error if i put single "\", If I put two, it works. my understanding is: we can use "\" to escapt the special characters. why here I need to put two "\". The system I am working on is SunOS 5.10 Generic_150400-04 sun4v sparc sun4v
echo "SUCCESS(ABCD)" |nawk '{gsub("SUCCESS\\(", "")}1'
ABCD)
echo "SUCCESS(ABCD)" |nawk '{gsub("SUCCESS\(", "")}1'
nawk: illegal primary in regular expression SUCCESS( at
source line number 1
context is
{gsub("SUCCESS\(", >>> "") <<<