This website works better with JavaScript.
Home
Explore
Help
Sign In
TechnikNews
/
PublicAPIs
mirror of
https://github.com/public-apis/public-apis
Watch
1
Star
2
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Initial skeleton of parsing text file
pull/385/head
Dave Machado
7 years ago
parent
184e4c3dd2
commit
6e1da9a1a3
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
build/validate.rb
+ 9
- 0
build/validate.rb
View 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
Write
Preview
Loading…
Cancel
Save