mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-18 19:46:20 +02:00
Initial skeleton of parsing text file
This commit is contained in:
parent
184e4c3dd2
commit
6e1da9a1a3
1 changed files with 9 additions and 0 deletions
9
build/validate.rb
Executable file
9
build/validate.rb
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue