I would like to export the 5th line from every file within a directory. I am using GNU sed because we have no Unix or Linux environment. I used the following statement:
sed -s -n 5p c:\directory\*.*
but I only get the 5th line from one of the files in the directory. I am desperate for a listing of this line from each file in order to avoid manually finding this information and compiling in a spreadsheet.
If anyone knows how I can get each 5th line to output I would truly appreciate your help.