perl -Mstrict -wne'print "$1\n" while /\B(-I\S+)/g;' infile