You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Mohit Anchlia <mo...@gmail.com> on 2012/10/05 20:58:06 UTC

Extra new line

Is there a way to remove extra new line in pig. Something that remove ^$
regex? My input looks like

1,a
1,b

2,a
2,b

Re: Extra new line

Posted by Prashant Kommireddi <pr...@gmail.com>.
filter by $0 != '';

Would that work?

On Fri, Oct 5, 2012 at 11:58 AM, Mohit Anchlia <mo...@gmail.com>wrote:

> Is there a way to remove extra new line in pig. Something that remove ^$
> regex? My input looks like
>
> 1,a
> 1,b
>
> 2,a
> 2,b
>