On Oct 14, 2007, at 1:43 PM, Randy Kramer wrote:

> I'm in the process of writing a small utility in Ruby to convert  
> files in one
> format to a different format.
>
> Eventually it would be nice to to have the utility incorporate all  
> or most of
> the command line functionality and options of a command like cp,  
> mv, or ln
> (with suitable variations).  For example, it would be nice to  
> invoke it in
> any of 3 forms, like:
>
> cp [OPTION]... SOURCE DEST
> cp [OPTION]... SOURCE... DIRECTORY
> cp [OPTION]... --target-directory=DIRECTORY SOURCE...
>
> and to use many of the options available to cp like help, backup,  
> force,
> interactive, ...
>
> Is there a Ruby gem, library, class, or whatever that implements  
> some or all
> of that functionality?
>
> Randy Kramer

require 'fileutils'

FileUtils.mv src, dst


etc...

cheers.

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama