1 2 3 4 5 6 7 8
#!/usr/bin/env ruby while line = STDIN.gets if line.strip != "" `ratpoison -c "echo #{line.strip.split("\n").map {|i| i.strip }.reject {|i| i==''}.join '\n'}"` end end