Skip to content

Instantly share code, notes, and snippets.

@jineshqa
Last active November 17, 2017 23:53
Show Gist options
  • Save jineshqa/02b2e5486d32a3426795890236625e98 to your computer and use it in GitHub Desktop.
Save jineshqa/02b2e5486d32a3426795890236625e98 to your computer and use it in GitHub Desktop.
grep command
$ cat a.txt

hello

This line starts with T and finishes with e

foo

$ grep '^a.*e$' a.txt

and thisfinishes with e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment