From: Dossy Date: 2002-05-29T09:19:03+09:00 Subject: Re: PR for ruby On 2002.05.29, Sean Russell wrote: > You'll get nils in the output for blank lines; depending on what you want to > do, filtering blank lines is probably appropriate, but a little longer: > > ruby -nae 'puts $F[-1] if $F[-1]' Or, if you want to cheat: ruby -lane 'puts $F[-1] || ""' -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)