comparison template.rb @ 8:51e5f26dc81e

Add a template file for reuse
author IBBoard <dev@ibboard.co.uk>
date Thu, 07 Dec 2023 19:41:46 +0000
parents
children
comparison
equal deleted inserted replaced
7:6e0615e54e71 8:51e5f26dc81e
1 #! /usr/bin/env ruby
2
3 if ARGV.length != 1
4 abort("Incorrect arguments - needs input file")
5 elsif not File.exist? (ARGV[0])
6 abort("File #{ARGV[0]} did not exist")
7 end
8
9 file = ARGV[0]
10
11 File.open(file, "r").each_line(chomp: true).…
12 # Rest of algorithm here