lawless-legends/Platform/Apple/virtual/xformScript.rb

18 lines
298 B
Ruby
Raw Normal View History

2019-05-02 15:06:36 +00:00
#!/usr/bin/env ruby
length = 0
File.readlines(ARGV[0]).each do |line|
line.scan(/KEY:(.*?) SEED:/).each { |match|
print $1
length += 1
if length > 80
print "\n"
length = 0
end
}
line.scan(/STRING:(.*)/).each { |match|
puts $1
length = 0
}
end
print "\n"