โ02-15-2022 07:02 AM
How to get a particular line of message from a text file.
โ02-15-2022 07:52 AM
So you are trying to search a file content for specific error message? like a text .log file or .csv?
โ02-15-2022 09:02 AM
it's saved as xyz.txt
about 3000 lines
โ02-15-2022 09:15 PM
You could split the csv file contents by new line character and then pull the line that you want - if you're searching for certain messages, you can potentially do a gsub on the contents and use a regular expression to find the matching lines. I think we'd need to know more about the scenario though in order to help further.
โ02-16-2022 12:28 AM
You can use https://regex101.com/library to create your regex