You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
123456789 |
- #!/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
|