From: "Weirich, James" Date: 2003-09-16T23:50:59+09:00 Subject: Re: scrambler one-liner > -pe 'gsub!(/\w+/){|w|r=1..w.size-1;w[r]=w[r].split(//).sort_by{rand}.to_s;w}' Hmmm ... This seems to smbrcale all the lertets but the fsrit. It souhld lvaee the last ctaeachrr in pclae. Try: ruby -pe 'gsub!(/\w+/){|w|(w.size>1)?(r=1...w.size-1;w[r]=w[r].split(//).sort_by{rand }.to_s;w):w}' It's leongr, but it gevis the rihgt asnwer. -- -- Jim Weirich / Compuware -- FWP Capture Services -- Phone: 859-386-8855