Skip to content

Instantly share code, notes, and snippets.

@isayev
Created July 28, 2019 19:04
Show Gist options
  • Save isayev/a794323453600d0a44c327968e708ab1 to your computer and use it in GitHub Desktop.
Save isayev/a794323453600d0a44c327968e708ab1 to your computer and use it in GitHub Desktop.
find a line number where is a pattern in a file
grep -n "pattern" file.csv | awk -F ":" '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment