Last active
August 29, 2015 14:23
-
-
Save PaulChana/099f8e0828638121b505 to your computer and use it in GitHub Desktop.
Get lines starting with a string in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep "^String_to_find" "myfile.txt" | |
| # example: | |
| # grep "^Bugfix:" "~/myfile.txt" | |
| # Finds and returns all lines that start with Bugfix: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment