Great, thanks for your reply! I'll also look into coding it in Julia rather than the shell workaround, thanks for the tip.
Loic On Tuesday, September 6, 2016 at 11:40:53 AM UTC-7, Yichao Yu wrote: > > > > On Tue, Sep 6, 2016 at 2:15 PM, Loic Chappaz <[email protected] > <javascript:>> wrote: > >> Hi Julia users, >> >> I'm trying to replicate the Linux bash command: >> >> cat a b >> c >> >> in Julia, where a, b, c are data files. (I attached sample text files for >> testing) I tried: >> >> run(pipeline(`cat a b`, stdout="c")) >> > > It's perfered to just do the IO in julia, if you really want to use julia > as shell script you can do. > > ``run(pipeline(`cat a b`, stdout=open("c", "a")))`` > > > >> >> but this appears to be equivalent to cat a b > c, meaning the file c is >> overwritten. I need to append to c as opposed to overwrtting it. >> >> Thank you for any input and suggestions! >> Loic >> > >
