are there any codes whereby it can read the first and last word of all the lines of a text file?
I would need to read the first and last word of text files and make sure both the first and last words matches the conditions then print the lines that matches the conditions and save them into a new file.
Your help is much appreciated.