Marcin Cinik wrote: > Hello! > > I'm looking for the utility which could sum up numbers separated by > anything what is not a number from stdin or file. I needed such tool > very often and finally I've written one recently. It is not easy to > accomplish that using bc because it is hard to use when scripting (you > need to add '+' signs, there's a problem with '-', blank lines and it is > hard to force bc output to be as I want). My question is: Is there any > utility within coreutils which could suffice my needs ? If it is not, is > there any possibility to contribute my simple utility to coreutils ? > I know that maybe it is not right mailing list, but at this moment I > don't know the better one. > > regards, > > Marcin Cinik
I'm not sure such a utility fits with coreutils (though I have required the functionality many times myself). Here are some pointers: http://www.pixelbeat.org/scripts/add http://www.pixelbeat.org/scripts/funcpy http://suso.suso.org/programs/num-utils/ Pádraig. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
