Skip to content

Instantly share code, notes, and snippets.

View TwP's full-sized avatar
🛰️
Spacing Out

Tim Pease TwP

🛰️
Spacing Out
View GitHub Profile
@TwP
TwP / concat.rb
Created September 9, 2011 16:23 — forked from copiousfreetime/concat.rb
#!/usr/bin/env
# Possibly one of the faster wasy to concatenate two files in ruby.
# Another way might be to use the lower level IO#sysread, IO#syswrite methods
# I think the main benefit in this case is the reusing of the String instance as
# the buffer.
dest = ARGV.shift
src = ARGV.shift