Skip to content
echo(1) in ruby
Find file
Latest commit bf22f5a @bmizerany typo fix
Failed to load latest commit information.
lib cat(1) in ruby
.gitignore ignores typo fix
recho.gemspec v0.2.0

echo(1) and cat(1) in ruby


gem install recho


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"

Something went wrong with that request. Please try again.