HI swamijc,
try this :
# change to the path where your file exist
#cd
#cd bin
cat abc.ccp | awk ' BEGIN { FS="\n"; Comment="OFF" }
{
i=0
row=""
lang=length($1)
while ( i <= lang )
{
i=i+1
if ( substr($1,i,1) == "/" )
{
if ( substr($1,i+1,1) == "*" )
{
Comment="ON"
i=i+2
}
}
if ( substr($1,i,1) == "*" )
{
if ( substr($1,i+1,1) == "/" )
{
Comment="OFF"
i=i+2
}
}
if ( Comment=="OFF" )
{
row=row""substr($1,i,1)
}
}
if ( row != "" )
{
print row > "xyz.ccp"
}
}'