I have a text file...
usdalnpd01 PROD_WINDOWS
usdalphm01 PROD_WINDOWS
usdalqdb01 NON_PROD_WINDOWS
usdalsvc01 NON_PROD_WINDOWS
usdaluat01 NON_PROD_WINDOWS
When I do this...
cat text.file | grep PROD_WINDOWS
I get both the PROD_WINDOWS and NON_PROD_WINDOWS entries.
I also tried
grep 'PROD_WINDOWS' text.file
and the same thing happens. I only want the lines that are PROD_WINDOWS. Is grep not the right tool, or is there some switch I'm missing?
Thanks, in advance!
630111
usdalnpd01 PROD_WINDOWS
usdalphm01 PROD_WINDOWS
usdalqdb01 NON_PROD_WINDOWS
usdalsvc01 NON_PROD_WINDOWS
usdaluat01 NON_PROD_WINDOWS
When I do this...
cat text.file | grep PROD_WINDOWS
I get both the PROD_WINDOWS and NON_PROD_WINDOWS entries.
I also tried
grep 'PROD_WINDOWS' text.file
and the same thing happens. I only want the lines that are PROD_WINDOWS. Is grep not the right tool, or is there some switch I'm missing?
Thanks, in advance!
630111