config root man

Current Path : /usr/local/share/examples/ruby18/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/share/examples/ruby18/fullpath.rb

#! /usr/local/bin/ruby
# convert ls-lR filename into fullpath.

if ARGV[0] =~ /-p/
  ARGV.shift
  path = ARGV.shift 
end

if path == nil
  path = ""
elsif path !~ %r|/$|
  path += "/"
end

while line = gets()
  case line
  when /:$/
    path = line.chop.chop + "/"
  when /^total/, /^d/
  when /^(.*\d )(.+)$/
    print($1, path, $2, "\n")
  end
end

Man Man