cypher / recho forked from bmizerany/recho
- Source
- Commits
- Network (2)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
Blake Mizerany (author)
Thu Oct 29 16:09:10 -0700 2009
recho /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Oct 28 00:37:06 -0700 2009 | |
| |
README.md | ||
| |
lib/ | Thu Oct 29 16:16:19 -0700 2009 | |
| |
recho.gemspec | Wed Oct 28 00:36:56 -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.
Alternativly, they are also module-functions on FileUtils
FileUtils.echo("testing") > "testing.txt"

