Sha256: e15b8657b5db133da2013fe6adc96156ce615cffc6e929e4f7c06fc1f32f1d5b

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

#!/usr/bin/env ruby 
#== czsearch is a userful command to search via the Code Zauker facility
# Send somethiing like -W0 to ruby, for a cleaner output
$VERBOSE=nil 
require 'code_zauker'
ARGV.each do | s |
  #puts "Code Zauker Searching for #{s}"
  fs=CodeZauker::FileScanner.new()
  files=fs.search(s)
  if files.length >0
    fline=files.join(" ")
    # -H forces to print file name also with only one match
    cmd="grep -H --color -n '#{s}' #{fline}"
    #puts cmd
    system(cmd)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
code_zauker-0.0.1 bin/czsearch