I have a very basic question on deleting/printing from/to a file.
My input file is something like this:
A1:This is the first line
A2:Welcome to the first line
A3:haaaaaaaaaaaaaaaaaaaaa
A1:This is the first line
A2:Welcome to the second line
A3:heeeeeeeeeeeeeeeeeeeee
I want to first...
I would like to copy an entire file in an array and search for a keyword "Search". When this keyword is found, i then want to copy next 6 lines from this keyword. This task needs to be repeated for the entire file. Can somebody guide me how to go about this?
Thanks.
i have a very basic question. Since i am new to Perl, i am unable to resolve this myself. Any help will be greatly appreciated.
I am browsing through a file and searching for a string. If the string matches, i want to pick the next line. Somehow i am not able to move my file handler to the next...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.