Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. Commented May 29 at 6:06
  • This has several logical and quoting-related issues. It would not be able to look for the string -v or any pattern containing a space or tab, and might have issues with patterns looking like filename globbing patterns, shell expansions, general shell code (redirections, pipes etc.) Commented May 29 at 6:16