Scripting advice needed

Evening all,

Im trying to get a script that will:
Select the most 3 recent files in a specific directory
Run a command on them (like chmod)
Ask of you would like to continue
Copy the files to another directory
If a linux guru could help me out, it would be very much appreciated.

Thanks for reading

#!/bin/bash
ls -t /some_dir | awk 'NR<4' | xargs chmod 000
echo "Do you want to continue? [Y/N]"
read -n1 key
if [ $key != "Y" ]; then
  exit
fi
ls -t /some_dir | awk 'NR<4' | xargs -i cp {} /some_other_dir
#!/usr/bin/env ruby -w
Dir["*"].each{|f| File.file?(f) }.sort_by { |f| test(?M,f) }[-3,3].each do |x|
print "Do you want to continue: "
cont = gets.chomp
case cont
  when /[yY]/
    puts "chmoding ..."
    File.chmod 0777 ,x
    File.copy(x , File.join("/destination","path") )
end