we have multiple files and directories, in that i need to grep Nth line of a word match and redirect that output to a new file.
Ex: i have a file called reports.html, in that i need to grep the word “Total” and 5th line of its value “67%” and send these to a new file.
Please help me in doing this.