remove_ssf.pl 199 Bytes
Newer Older
priyank's avatar
priyank committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!usr/bin/perl

$_prev=1;
while(<>)
{
	if($_=~m/^0\t/)
	{
		$_prev=2;
		next;
	}
	elsif($_=~/^\t\)\)/ and $_prev=~/^\t\)\)/)
	{
		$_prev="\t))";
		next;
	}
	else
	{
		$_prev="$_";
		print "$_";
	}
}