|How do i retrieve text including two strings that may appear any number of times in a file ina directory, i have to search all the files and i have to get the content from all the files in the directory.|
For example : college students
I want only the lines between college students and end including them i.e., eight lines should get copied to a new text file. I want all the files to be searched for this condition and the suitable content from all the files should be copied to a new file. I want the whole commands in a script to be executed, i am a java programmer, if the user selects the button i will make the script to run and i can get the file to be download with all the content from all the directories.