[GRASS-dev] Pipeline efficiency in bash shell scripts

Patton, Eric epatton at nrcan.gc.ca
Thu Oct 11 08:41:24 EDT 2007


>> In both cases, the for loop is calling the mbnavlist program (from
>> free and open source bathymetry processing software MBTools) and awk
>> together thousands or times. I wasn't sure if there are any general
>> benefits to piping vs. writing out to a file, then redirecting input.
>> 
>> Any suggestions?

>Any difference is likely to be so small that there's no reason to
>prefer one to the other based upon efficiency concerns.

>Exactly which will be more efficient depends upon more factors than
>can reasonably be discussed here.

>-- 
>Glynn Clements <glynn at gclements.plus.com>

Thanks for the feedback. I didn't really suspect a difference, but good to know.

~ Eric.




More information about the grass-dev mailing list