Quote:
Originally Posted by Raghuram.P
HI,
If you can use AWK then try this awk code
BEGIN{
COMMENT="TCSCMT* ";
}
{
if($0 ~ /^EVALUATE/)
{
printf("%s%s\n",COMMENT,$0);
getline;
while(1)
{
printf("%s%s\n",COMMENT,$0);
if($0 ~ /^END-EVALUATE/)
{
break;
}
getline;
}
}
else
{
printf("%s\n",$0);
}
}
END{
}
Thanks
Raghuram
Hi Raghu...
This working and it almost Solved my Requirement but...
IF i have some thing like
TCSCMT* MOVE OTHER TO COLOR
then is putting
TCSCMT*TCSCMT* MOVE OTHER TO COLOR
That is its PreFixing the TCSCMT* but i want the Whole line to get Replaced(basically the first 7 Chars are SPACES or ??????* for me )
So i want the 1st 7 Chars to be REPLACED by TCSCMT*
Can we replace instead of Prefixing??