I looked around here and could not find a similar example.  please help.
My goal is to mv a file like so: mv /tmp/dev.log /usr/local/dev.log.tst
using Ruby 1.8.7

ruby /tmp/test
/tmp/test:8: syntax error, unexpected ')', expecting kDO_BLOCK

derek@derek-laptop:/tmp$ cat /tmp/test
#!/usr/bin/env ruby -w
require 'ftools';
require 'fileutils';

file="dev.log"
FileUtils.cp("#{file}", "#{file}.copied")
ZIPDIR = "/usr/local/"
FileUtils.mv("#{file}.copied",ZIPDIR"#{file}.tst")
-- 
Posted via http://www.ruby-forum.com/.