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| "#{$1}" }
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ix-cli-0.0.17 bin/ix-hls
ix-cli-0.0.15 bin/ix-hls
ix-cli-0.0.14 bin/ix-hls
ix-cli-0.0.13 bin/ix-hls
ix-cli-0.0.12 bin/ix-hls
ix-cli-0.0.11 bin/ix-hls
ix-cli-0.0.10 bin/ix-hls
ix-cli-0.0.9 bin/ix-hls
ix-cli-0.0.7 bin/ix-hls
ix-cli-0.0.6 bin/ix-hls
ix-cli-0.0.5 bin/ix-hls
ix-cli-0.0.4 bin/ix-hls
ix-cli-0.0.3 bin/ix-hls
ix-cli-0.0.2 bin/ix-hls
ix-cli-0.0.1 bin/ix-hls