25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/env ruby
- args = ARGV
- filename = args[0]
-
- File.foreach(filename).with_index do |line, line_num|
- line_num += 1
- puts "#{line_num}: #{line}"
-
- end
|