title: Getting n values from key values pair using pig
body: <p>I have a test file with key and values separated by coma. How can i get only 10 values for each key using  pig script. </p>
  
  <p>sample input: john|str1,str2,str3,str4,str5,str6,str7,str8,str9,str10,str11,str2 
  ,preferred output: john|str1,str2,str3,str4,str5,str6,str7,str8,str9,str10</p>