N
ngoc
#!/usr/bin/ruby
diff_file = File.open('diff.txt')
diff_file.each { |line|
next if line =~ /^Only/
system "dos2unix #{line.split(' and ').at(1).sub(' differ', '')}"
}
->work well
-------------------
#!/usr/bin/ruby
diff_file = File.open('diff.txt')
diff_file.each { |line|
next if line =~ /^Only/
system("dos2unix", line.split(' and ').at(1).sub(' differ', ''))
}
->problems with converting error message
diff_file = File.open('diff.txt')
diff_file.each { |line|
next if line =~ /^Only/
system "dos2unix #{line.split(' and ').at(1).sub(' differ', '')}"
}
->work well
-------------------
#!/usr/bin/ruby
diff_file = File.open('diff.txt')
diff_file.each { |line|
next if line =~ /^Only/
system("dos2unix", line.split(' and ').at(1).sub(' differ', ''))
}
->problems with converting error message