Hi,
on Windows XP SP2 I would like to write a commands using pipes, find and 'or' condition.
Sample file myfile.txt:
If using command:
type myfile.txt | find "AAA" --> this returs line AAA
type myfile.txt | find "BBB" --> this returs line BBB
How to write command to get both AAA and BBB. I would like to get them in order of appearance in file.
Thanks,
Grofaty
on Windows XP SP2 I would like to write a commands using pipes, find and 'or' condition.
Sample file myfile.txt:
Code:
AAA
BBB
CCC
If using command:
type myfile.txt | find "AAA" --> this returs line AAA
type myfile.txt | find "BBB" --> this returs line BBB
How to write command to get both AAA and BBB. I would like to get them in order of appearance in file.
Thanks,
Grofaty