C
Collin Moore
Hi
thanks for all the help on my previous question, but now I am trying to
clean up the output of some text output.
currently I have:
[email protected]: EVENT: [LOG] *** DEBUG ACTION ***
and I'd like it to have:
110.075
EBUG ACTION
: just for easy import into excel.
Here is the current ruby file I am working with where is looked for
lines with DEBUG and START in them.
File.open('output.txt', 'w') do |f2|
File.readlines("original.txt").each do |line|
if line =~ /DEBUG/ || line =~ /START/
f2.puts line
end
end
end
Any ideas?
thanks for your help
thanks for all the help on my previous question, but now I am trying to
clean up the output of some text output.
currently I have:
[email protected]: EVENT: [LOG] *** DEBUG ACTION ***
and I'd like it to have:
110.075
: just for easy import into excel.
Here is the current ruby file I am working with where is looked for
lines with DEBUG and START in them.
File.open('output.txt', 'w') do |f2|
File.readlines("original.txt").each do |line|
if line =~ /DEBUG/ || line =~ /START/
f2.puts line
end
end
end
Any ideas?
thanks for your help