I have a big xml file where the whole file is just one line. This is very impractical since I need to search for certain occurrences in the file, which the grep
command can't help with in this case. I tried to open the file in several editors like notpad++ and sublime, but the file is too big. Is there any clever way to search for occurrences of a string or pattern in linux or windows? The problem with grep
is of course that it returns the line that the match occurs on, which is no good in this case.
The size of the file is 4GB.