how I make to select the elements added for a command? for example the command line adding 5 lines, to select the 5 lines added.