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