Hi All,
I have a file which the following data
This is a sample
tool error
end of file
I need to delete the line before tool error. I can read the file line by line and match for the key word " tool error", but not sure how to delete the line before the matched line.
Any pointers to solve this?, thnaks in advance
I have a file which the following data
This is a sample
tool error
end of file
I need to delete the line before tool error. I can read the file line by line and match for the key word " tool error", but not sure how to delete the line before the matched line.
Any pointers to solve this?, thnaks in advance
Comment