tag:blogger.com,1999:blog-7723706839198721393.post6305038567132753447..comments2023-05-10T05:52:15.824-07:00Comments on Rory Tulk's Blog: Left-Fold for BashRoryhttp://www.blogger.com/profile/08421782538859631666noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7723706839198721393.post-45792342949083053822010-02-07T19:02:59.834-08:002010-02-07T19:02:59.834-08:00It's almost like someone should write a book o...It's almost like someone should write a book on working with data ... :)Erniehttps://www.blogger.com/profile/01769123247497155311noreply@blogger.comtag:blogger.com,1999:blog-7723706839198721393.post-15080631889293371782010-02-07T13:39:51.105-08:002010-02-07T13:39:51.105-08:00Two (less-than-awesome) solutions for the tr/bc so...Two (less-than-awesome) solutions for the tr/bc solution:<br /><br />echo `tr '\n' '+' | head --bytes='-1'` | bc<br /><br />(tr '\n' '+' | head --bytes='-1' && echo) | bc<br /><br />... just need to get that newline in at the end...zkincaidhttps://www.blogger.com/profile/08127275535283166049noreply@blogger.com