Sha256: 6e0751688f964811299aef8785545f8e9a49af7d97f1c98de123102906cd2f1b
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
#!/usr/bin/env ruby lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'shell2html' if ARGV.count > 0 file = ARGV[0] if !File.exists? file puts "File #{file} Not found" exit(1) end puts Shell2html.to_html(File.read(file)) else txt = $stdin.read puts Shell2html.to_html(txt) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shell2html-0.0.6 | bin/shell2html |