Created
July 28, 2019 19:04
-
-
Save isayev/a794323453600d0a44c327968e708ab1 to your computer and use it in GitHub Desktop.
find a line number where is a pattern in a file
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 -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