Adding line count number to find results
Posted: 30 Jan 2012 10:53
Hi,
I'm wondering if there's a way to add the the line number to the beginning of the below find command.. I don't mean using the /N action as it gives the line number placement in the file.. I'm looking for the count result number.. for example if there were 50 results, it would output the number 1 - 50 at the beginning of each find result
Thanks,
Jaz
I'm wondering if there's a way to add the the line number to the beginning of the below find command.. I don't mean using the /N action as it gives the line number placement in the file.. I'm looking for the count result number.. for example if there were 50 results, it would output the number 1 - 50 at the beginning of each find result
Code: Select all
find "Company" "%INPUT_DIR%\%INPUT_FILE%" >> %OUTPUT_DIR%\%OUTPUT_FILE%
Thanks,
Jaz