findstr_a_grep_alternative_for_windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
findstr_a_grep_alternative_for_windows [2025/03/24 10:57] – [Introduction] walkeradminfindstr_a_grep_alternative_for_windows [2025/03/24 10:58] (current) walkeradmin
Line 14: Line 14:
  
 The response will be: The response will be:
-\\  
 \\  \\ 
 <code> <code>
Line 84: Line 83:
  
 However, If I was only interested in say 'srt' I could use grep to filter the response. However, If I was only interested in say 'srt' I could use grep to filter the response.
-\\  
 \\  \\ 
     kubectl -n mediakind get pods |grep srt     kubectl -n mediakind get pods |grep srt
  
 This would return just any lines that contain 'srt' This would return just any lines that contain 'srt'
-\\  
 \\  \\ 
 <code> <code>
Line 102: Line 99:
 ---- ----
 ==== findstr ==== ==== findstr ====
-\\ +
 What is in Windows (and I am using Windows 11-21H2, which is quite old) is something called 'findstr'. The syntax for findstr is very similar. Please bear in mind that grep may do more things that findstr, I am just using this one use case of filtering results from issued commands. What is in Windows (and I am using Windows 11-21H2, which is quite old) is something called 'findstr'. The syntax for findstr is very similar. Please bear in mind that grep may do more things that findstr, I am just using this one use case of filtering results from issued commands.
-\\  
 \\  \\ 
     kubectl -n medikind get pods | findstr srt     kubectl -n medikind get pods | findstr srt
findstr_a_grep_alternative_for_windows.1742813834.txt.gz · Last modified: by walkeradmin