mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 18:25:45 +00:00
10 lines
256 B
Ruby
Executable file
10 lines
256 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
# Replaces L` and R` with Go-compatible backtick-inside-backticking.
|
|
# Makes it eaiser for me to type markdown-generating Go code.
|
|
ARGF.each do |line|
|
|
line.chomp!
|
|
line.gsub!('L`', '`+"`')
|
|
line.gsub!('R`', '`"+`')
|
|
puts line
|
|
end
|