From: ts Date: 2000-06-05T07:57:16+02:00 Subject: [ruby-talk:03103] Re: Anyone using pack/unpack with uuencoding >>>>> "D" == Dave Thomas writes: D> puts "begin 644 file" D> while gets D> print [$_].pack("u") D> end D> puts "end" Try : pigeon% cat b.rb #!/usr/bin/ruby puts "begin 644 #{ARGV[0]}" while line = $stdin.read(45) print [line].pack "u" end puts "`\nend" pigeon% pigeon% b.rb file < hello begin 644 file ,:&5L;&\*:&5L;&\* ` end pigeon% Guy Decoux