#!/usr/local/bin/ruby line=[] while l=gets line << l.chomp! end puts line.join("/")