perl -pe '/^SS/ and (open STDOUT, ">",$ARGV . $count++ or die)' thebigfile.txt