You can use
:g/word/normal 2dd
This finds all instances of word and then executes the command after it. In this case it executes 2dd in normal mode
You can use
:g/word/normal 2dd
This finds all instances of word and then executes the command after it. In this case it executes 2dd in normal mode