Hello all. I have what I believe to be a realatively easy problem, but I am having trouble fixing it.
I need to search through a text file for a string, then cut all text from the beginning of the file to that string. Head would do the job, but I don't know how many lines to cut. Basically, I need to do a search that returns only the line number that the search argument is on. This would allow me to use head. If that's not possible, I need a different way to cut the text file, like awk or sed, as to which I have no idea how to use.
Thanks much,
TysonG
I need to search through a text file for a string, then cut all text from the beginning of the file to that string. Head would do the job, but I don't know how many lines to cut. Basically, I need to do a search that returns only the line number that the search argument is on. This would allow me to use head. If that's not possible, I need a different way to cut the text file, like awk or sed, as to which I have no idea how to use.
Thanks much,
TysonG