CHICAGO - Francisco Liriano wasn't quite sure where his pitches were going. The one thing he did control was his emotions.
Liriano pitched two-hit ball over seven innings and the Pirates beat the Chicago Cubs 2-0 Friday for their major league-leading 10th shutout, matching Pittsburgh's total for all of last season.
It is, as manager Clint Hurdle said, a "remarkable number." And it stands out even more because the Pirates don't have a complete game.
Pittsburgh starter Francisco Liriano throws against Chicago during the first inning on Friday.
Liriano (4-2) walked five, his most since Sept. 1 last year, but struck out eight to help Pittsburgh stop a three-game losing streak.
"I didn't feel, location-wise, I was that good," he said. "I was missing my spots a lot, and I walked too many guys. You know, just keep fighting 'til the end."
Liriano walked two in the second and two in the fourth. But rather than get rattled, he worked his way out of trouble both times and came away with the win after a two-start losing streak.
Mark Melancon pitched the eighth, and Jason Grilli finished the five-hitter for his major league-leading 23rd save in as many chances. After two-out singles by Ryan Sweeney and pinch-hitter Dioner Navarro, Grilli struck out Darwin Barney to preserve another shutout.
"We had 10 (shutouts) all last year and actually we pitched a lot better last year than we did the first year I was here," Hurdle said. "It just speaks to the job the pitchers are doing here, No. 1 throwing strikes, keeping the ball down. We've been able to get a little better at it every year, and this year, obviously, we've taken it to another level at this point in the season."
Russell Martin had two hits, including an RBI double off Travis Wood (5-4) in the sixth.
The Pirates won for the second time in seven games. Jordy Mercer doubled twice.
Pittsburgh continued to struggle at the plate after managing just one hit off Julio Teheran in a 5-0 loss at Atlanta on Wednesday. This time, the Pirates finished with seven hits.
Wood gave up one run and four hits in six innings with two walks and six strikeouts.
Outscored 29-11 and shut out three times in their previous six games, the Pirates went ahead in the sixth.
After escaping a bases-loaded jam in the second, Wood retired 11 straight before Mercer's one-out double. Mercer advanced on Andrew McCutchen's fly to right and scored on Martin's double.
Travis Snider added an RBI grounder in the ninth against Carlos Villanueva after Martin's walk and Pedro Alvarez's single.