それじゃあ1行目がabcじゃなかったら終了するじゃんか

while( ( line=br.readLine() ) != null ){
  if( line.indexOf( "abc" ) > -1 ) {
    System.out.println(line);
  }
}