Your current code will only check one line from the file against $1-... is that what you want?