cmdtest/t/bin/echo_ctrl_chars.rb
2016-12-07 21:41:20 +01:00

13 lines
198 B
Ruby
Executable File

#!/usr/bin/ruby
for arg in ARGV
if arg =~ /^(\d+):(\d+)$/
a = Integer($1)
b = Integer($2)
for i in a...b
puts "--- %s --- %s ---" % ["^" + (i+64).chr, i.chr]
end
end
end