Deleting all words in MS word file except bold and italic in the terminal command
None of the standard utilities serve this exact purpose.

You'll want to custom develop a small script/program to accomplish the task. You could use for example Python, Perl or similar to create the program.