NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Ruby code – update

Posted on April 27, 2006 - Filed Under Ruby

Hmmmm, it looks like my estimate (http://nhw.pl/wp/2006/04/compact-ruby-code/) was wrong.


wc -l rbckp.rb
44 rbckp.rb

or even more interesting:

grep -v ^$ rbckp.rb |wc -l
34
grep -v ^$ BACKUP.sh | wc -l
103

For those not familiar with grep syntax – using -v ^$ filters and shows all not empty lines (for such query line with whitespaces only is not empty).

And basically both scripts does similar work (even if not identical). I like Ruby…

Popularity: 3% [?]

Hits for this post: 3007

Similar Posts

Comments

Leave a Reply