Sha256: c5b7cb70132fa8e273de7b41493ac079d5cf13d4bcba2af387293dd6086d3eb8

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8
#
# USAGE: lineescapezsh [options] files ...

require "pp"
require "optparse"
require "rubygems"
#gem "tefil"
require "tefil.rb"
gem     "builtinextension"
require "string/escapezsh"

## option analysis
OPTIONS = {}
op = OptionParser.new
op.on("-o"    , "--overwrite"    , "Overwrite."){    OPTIONS[:overwrite] = true}
op.parse!(ARGV)

module TextFilter
  def self.process_stream(in_io, out_io)
    in_io.each do |line|
      out_io.puts line.escape_zsh
    end
  end
end

OPTIONS[:overwrite] ||= false

TextFilter.run(ARGV, OPTIONS[:overwrite])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tefil-0.0.2 bin/lineescapezsh