benry-unixcmd 0.9.0
Unix commnads implementation, like `fileutils.rb`. Features compared to `fileutils.rb`: * supports file patterns (`*`, `.`, `{}`) directly. * provides `cp :r`, `mv :p`, `rm :rf`, ... instead of `cp_r`, `mv_p`, `rm_rf`, ... * prints command prompt `$ ` before command echoback. * provides `pushd` which is similar to `cd` but supports nested calls naturally. * implements `capture2`, `capture2e`, and `capture3` which calls `Popen3.capture2`, `Popen3.capture2`, and `Popen3.capture3` respectively. * supports `touch -r reffile`. * provides `sys` command which is similar to `sh` in Rake but different in details. * provides `zip` and `unzip` commands (requires `rubyzip` gem). * provides `store` command which copies files recursively into target directory, keeping file path. * provides `atomic_symlink!` command which switches symlink atomically. ``` cp Dir['*.rb'], 'tmpdir' ## fileutils.rb cp '*.rb', 'tmpdir' ## benry-unixcmd ``` Benry-unixcmd provides `cp_p` and `cp_pr` which are equivarent to `cp -p` and `cp -pr` respectively and not provided by `fileutiles.rb`.