2010-01-29, 16:25
try messing around in the terminal with the sed command.
sed -n 3p "your file" should read the third line of your file
|grep -m1 ^ should not change the output
agrep -Byn "search words" "your file here" will return the best match from your file with a number in front
|sed 's/:.*//'` should just leave you with a number
This is where I'd say the problem most likely lies.
sed -n 3p "your file" should read the third line of your file
|grep -m1 ^ should not change the output
agrep -Byn "search words" "your file here" will return the best match from your file with a number in front
|sed 's/:.*//'` should just leave you with a number
This is where I'd say the problem most likely lies.