I want to to run commands like ls, stat, but would like to store the
output, parse it, interpret it, etc. in a script.

grunt> fs -ls -R /user/jim/data;

grunt> fs -stat /user/jim/data/input/info.txt


Thanks,

Andy



On Mon, Jul 13, 2015 at 10:22 AM, Jianfeng (Jeff) Zhang <
[email protected]> wrote:

>
> What¹s your purpose for that ?
>
>
> Best Regard,
> Jeff Zhang
>
>
>
>
>
> On 7/11/15, 9:29 AM, "Andy Srine" <[email protected]> wrote:
>
> >Folks,
> >
> >Is there an easy way to store the output of the FS commands to a variable
> >in a pig script? Either native pig or even a solution using embedded
> >Python
> >will help.
> >
> >Thanks,
> >Andy
>
>


-- 
Thanks,
Andy

Reply via email to