[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



David selby <debian@pusspaws.net> 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 $tempdir/websync; csplit -f index -q - /lock/ {*} )

but I don't think that's any more readable.

-- 
Alan Shutko <ats@acm.org> - I am the rocks.



Reply to: