Skip to content

Instantly share code, notes, and snippets.

@jlogsdon
Created June 13, 2012 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlogsdon/2924728 to your computer and use it in GitHub Desktop.
Save jlogsdon/2924728 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
rrd_out = `rrdtool fetch ./switch01_traffic.rrd AVERAGE`
rrd_out.each do |line|
puts "Some Prefix #{line}"
end
# Outputs:
# Some Prefix Line 1
# Some Prefix Line 2
# Some Prefix Line 3
# Some Prefix Line ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment