grep: update boundary variable for pre-context