Say I call the following command in a git repo:
git log --oneline -n 10 | grep pattern
and it gives me the following output:
c95383f asdfasdf pattern
3e34762 asdfasdfsd pattern
How can I grab just the commit hash from the second line so that I can pipe it into another command?