From: Bil Kleb Date: 2008-11-18T22:51:29+09:00 Subject: selected field assignment Hi, I'm grabbing the owner and file names from `find . -perm -g+r -ls` which has ls -dgils output like, 6744065 8 -rw-r--r-- 1 kleb users 289 Nov 30 2007 Ruby/README with something like, find_result.each_line do |line| fields = line.split user_name, file_name = fields[4], fields.last I've also played with, _,_,_,_,user,_,_,_,_,_,file = a.split But both leave me thinking there is a better way without resorting to a regex? Thanks, -- http://twitter.com/bil_kleb