From: Marc Heiler Date: 2008-12-22T19:11:21+09:00 Subject: Re: get first and last line from txt file - how? > Why re-invent the wheel? Because your wheel will not work on i.e. Windows without the "tail" binary, but the ruby wheel will work wherever ruby works. And I honestly think that everything that is possible in ruby, should be done as well. The whole modularity of Unix tools has also led to shell scripts, which are just plain UGLY and a mess to maintain, especially the more complicated they grow (which is only less true for ruby scripts, because maintaining even complicated ruby scripts is a lot easier IMHO) I personally would rather maintain a collection of ruby or python files, than countless shell scripts that use various tools with various different syntax rules (awk, sed, grep and so on) to cope with. Noone will use a wooden wheel to drive on the 24 Hours of Le Mans. Use the better wheel. Use Ruby. -- Posted via http://www.ruby-forum.com/.