Sha256: fcdd83b421dbf35fcf7961671e25af2fcd2a2faf01fa4cef71812296c2dd7738
Contents?: true
Size: 411 Bytes
Versions: 15
Compression:
Stored size: 411 Bytes
Contents
#!/usr/bin/env ruby # # options # # line ix-highlight-line highlight a specific line # vertical ix-highlight-vertical highlight a particular column # highlight ix-highlight-match highlight whatever matches a regex # abort 'No pattern given' if ARGV[0].nil? trap('SIGINT') { } $stdout.sync = true STDIN.each_line do |line| puts line.gsub(/(#{ARGV[0]})/i) { |x| "[0;31;1m#{$1}[0m" } end
Version data entries
15 entries across 15 versions & 1 rubygems