grep

Search grep

How to grep Match Two Strings in One Line, or Anywhere in File or Command Output

Nov 27, 2023 - 2 Comments
Mac Terminal icon

The command line grep tool is incredibly powerful and useful for searching for matches in files, sorting text and data, finding strings in large files, and so much more. One common situation many command line users may find themselves in, is seeking to grep match for two different strings in a single line. You can … Read More

How to Exclude a Word with grep

Apr 5, 2018 - 3 Comments
Terminal in macOS

The grep command line tool is wildly useful for searching through text data for lines and snippets that match a defined string, character, word, or regular expression. While most uses of grep are for sorting data for syntax matches, what if you want to exclude a word or string with grep instead? Excluding line matches … Read More

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site