Hello,
I barely know the basics, but I am very determined to learn. I want to parse a few characters from each row, use that string to search another file and display the line number where I found the value in the file. I don't know if this can all be done on the command line, so I am creating a shell script that does this so far:
DIR = /cygdrive/c/temp/9*.txt
for item in parseFile.txt
do
foundValue = $item //do not know what command to use to search for a
//value and to parse from the file.
egrep -l "$item" $DIR //how do I display the line number where I found
//the item
done
Thanks for your help!