Skip to content

Instantly share code, notes, and snippets.

@PaulChana
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save PaulChana/099f8e0828638121b505 to your computer and use it in GitHub Desktop.

Select an option

Save PaulChana/099f8e0828638121b505 to your computer and use it in GitHub Desktop.
Get lines starting with a string in bash
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