I have several files named block_obj_#. Example block_obj_1, block_obj_2, ect.
I will never know how many files I might have. I need to grep on RXOTX and RXORX
(exactly) and send the results from each file to a new file called rxmop_input# using
the same number as in the original file. That is the most important part.
Meaning:
block_obj_1 contents
RXOTS-211-10-0
RXOTS-211-10-1
RXOTS-211-10-2
RXOTS-211-10-3
RXOTS-211-10-4
RXOTS-211-10-5
RXOTS-211-10-6
RXOTS-211-10-7
RXORX-211-0
RXORX-211-1
RXORX-211-2
RXORX-211-4
RXORX-211-5
RXORX-211-6
RXORX-211-8
RXORX-211-10
RXOTX-211-0
RXOTX-211-1
RXOTX-211-2
RXOTX-211-4
RXOTX-211-5
RXOTX-211-6
RXOTX-211-8
RXOTX-211-10
RXOTRX-211-0
RXOTRX-211-1
rxmop_input_1 contents after grep
RXORX-211-0
RXORX-211-1
RXORX-211-2
RXORX-211-4
RXORX-211-5
RXORX-211-6
RXORX-211-8
RXORX-211-10
RXOTX-211-0
RXOTX-211-1
RXOTX-211-2
RXOTX-211-4
RXOTX-211-5
RXOTX-211-6
RXOTX-211-8
RXOTX-211-10
And so on, for as many files as there are. Thanks!
I will never know how many files I might have. I need to grep on RXOTX and RXORX
(exactly) and send the results from each file to a new file called rxmop_input# using
the same number as in the original file. That is the most important part.
Meaning:
block_obj_1 contents
RXOTS-211-10-0
RXOTS-211-10-1
RXOTS-211-10-2
RXOTS-211-10-3
RXOTS-211-10-4
RXOTS-211-10-5
RXOTS-211-10-6
RXOTS-211-10-7
RXORX-211-0
RXORX-211-1
RXORX-211-2
RXORX-211-4
RXORX-211-5
RXORX-211-6
RXORX-211-8
RXORX-211-10
RXOTX-211-0
RXOTX-211-1
RXOTX-211-2
RXOTX-211-4
RXOTX-211-5
RXOTX-211-6
RXOTX-211-8
RXOTX-211-10
RXOTRX-211-0
RXOTRX-211-1
rxmop_input_1 contents after grep
RXORX-211-0
RXORX-211-1
RXORX-211-2
RXORX-211-4
RXORX-211-5
RXORX-211-6
RXORX-211-8
RXORX-211-10
RXOTX-211-0
RXOTX-211-1
RXOTX-211-2
RXOTX-211-4
RXOTX-211-5
RXOTX-211-6
RXOTX-211-8
RXOTX-211-10
And so on, for as many files as there are. Thanks!