From: dblack@... Date: 2007-01-04T01:21:06+09:00 Subject: Re: Delete line from file Hi -- On Thu, 4 Jan 2007, akbarhome wrote: > dblack@wobblini.net wrote: >> >> >> For the script version you can also do: >> >> #!/usr/local/bin/ruby -ni.bak >> puts $_ unless $. == 5 >> >> (or some variant thereof). >> >> >> David >> > > That is so "perl"...... I assume you're referring to the "(or some variant thereof)" advice :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)