How to find the line number in a file, that a certain line appears on.
This example is using grep on an assembler file to find an exact match for a certain line in the file and which line number it appears on. ubuntu ~/Documents $ grep -x -n "; copy the virus, we have also to copy the section table, located before" virii.S 143:; copy the virus, we have … Read more