arr = Dir::entries("/bin").sort arr.each{|name| if name[0] == '.' then next else puts name end }