Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. #
  3. # Turn off buffering
  4. STDIN.sync = true
  5. STDOUT.sync = true
  6.  
  7. # Enter infinite loop
  8. while (STDIN)
  9. line = gets
  10. if line =~ /my_regex/s
  11. puts "desired_map_output\n"
  12. else
  13. puts "\n"
  14. end
  15. end
Add Comment
Please, Sign In to add comment