This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
recho /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Oct 28 00:37:06 -0700 2009 | |
| |
README.md | Thu Oct 29 16:46:04 -0700 2009 | |
| |
lib/ | Thu Oct 29 16:16:19 -0700 2009 | |
| |
recho.gemspec | Thu Oct 29 16:17:37 -0700 2009 |
README.md
echo(1) and cat(1) in ruby
Install
gem install recho
Usage
require 'recho'
include FileUtils
echo("foo msg") > "foo.txt"
echo("bar msg") >> "bar.txt"
cat("foo.txt", "bar.txt") # => "foo msg\nbar msg\n"
But wait! There's more!
cat("foo.txt", "bar.txt") > "cat.txt"
You like that?! Yeah. Thought so.
Alternatively, they are also module-functions on FileUtils
FileUtils.echo("testing") > "testing.txt"







