Skip to content

Instantly share code, notes, and snippets.

@nhajratw
Created February 5, 2013 15:58
Show Gist options
  • Save nhajratw/4715371 to your computer and use it in GitHub Desktop.
Save nhajratw/4715371 to your computer and use it in GitHub Desktop.
moving files
[/tmp/test] ➔ cat > one.txt
[/tmp/test] ➔ ls
one.txt
[/tmp/test] ➔ irb
irb(main):001:0> require 'fileutils'
=> true
irb(main):002:0> FileUtils.mv 'one.txt', 'two.txt'
=> 0
irb(main):003:0> exit
[/tmp/test] ➔ ls
two.txt
[/tmp/test] ➔
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment