Re: bash: a pipe bodge, is there a better way ?

2003-07-03 Thread Alan Shutko
David selby <[EMAIL PROTECTED]> writes: > This seems a bit of a bodge and I am sure there is a better way.. Personally, I don't see anything wrong with it... You _could_ do something like (cd $tempdir/websync ; echo $scanhtml | csplit -f index -q - /lock/ {*} ) or echo $scanhtml | (cd $tempd

Re: bash: a pipe bodge, is there a better way ?

2003-07-03 Thread David selby
David selby wrote: I have a pipe of commands echo $scanhtml | csplit -f index -q - /lock/ {*} I want the output to go to $tempdir/websync/ ... Is there a more elegant way than my present solution of .. cd $tempdir/websync echo $scanhtml | csplit -f index -q - /lock/ {*} This seems a bit o

bash: a pipe bodge, is there a better way ?

2003-07-02 Thread David selby
I have a pipe of commands echo $scanhtml | csplit -f index -q - /lock/ {*} I want the output to go to $tempdir/websync/ ... Is there a more elegant way than my present solution of .. cd $tempdir/websync echo $scanhtml | csplit -f index -q - /lock/ {*} This seems a bit of a bodge and I am s