findstr_a_grep_alternative_for_windows
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| findstr_a_grep_alternative_for_windows [2025/03/24 10:51] – walkeradmin | findstr_a_grep_alternative_for_windows [2025/03/24 10:58] (current) – walkeradmin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| The response will be: | The response will be: | ||
| - | \\ | ||
| \\ | \\ | ||
| < | < | ||
| Line 81: | Line 80: | ||
| packaging-origin-server-64b75c54ff-pd4wh | packaging-origin-server-64b75c54ff-pd4wh | ||
| license-manager-0 | license-manager-0 | ||
| + | </ | ||
| + | However, If I was only interested in say ' | ||
| + | \\ | ||
| + | kubectl -n mediakind get pods |grep srt | ||
| + | |||
| + | This would return just any lines that contain ' | ||
| + | \\ | ||
| + | < | ||
| + | srt-worker-launcher-dcf66587-vg288 | ||
| + | srt-config-5784dd8f46-2twbd | ||
| + | srt-ui-connector-6f6bdbd4c9-f2qtd | ||
| </ | </ | ||
| + | So grep is a fantastic tool for this, however, grep is not in Windows. | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | ==== findstr ==== | ||
| + | |||
| + | What is in Windows (and I am using Windows 11-21H2, which is quite old) is something called ' | ||
| + | \\ | ||
| + | kubectl -n medikind get pods | findstr srt | ||
| + | |||
| + | < | ||
| + | srt-fe7a53f67-srt-worker-launcher-54796fb846-r8mpz | ||
| + | srt-mux-vvltle-main-egress-srt-mux-vvltle-main-6756b5b7d-z52ng | ||
| + | srt-mux-vvltle-main-srt-worker-launcher-68bfccb69c-94vsq | ||
| + | </ | ||
| + | |||
| + | So findstr works very well in this use case. | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
findstr_a_grep_alternative_for_windows.1742813467.txt.gz · Last modified: by walkeradmin
