mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-24 02:36:15 +00:00
19 lines
312 B
Ruby
Executable file
19 lines
312 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
while true
|
|
begin
|
|
line = $stdin.readline.chomp
|
|
rescue EOFError
|
|
break
|
|
end
|
|
|
|
if line =~ /GENRST_RUN_COMMAND{{.*}}HERE/
|
|
line.sub!("GENRST_RUN_COMMAND{{", "")
|
|
line.sub!("}}HERE", "")
|
|
puts 'GENRST_RUN_COMMAND'
|
|
puts line
|
|
puts 'GENRST_EOF'
|
|
else
|
|
puts line
|
|
end
|
|
end
|