How Do I Grep Multiple Fields in Unix?
Contents How Do I Grep Multiple Files? to Search Multiple Files with the Grep Command, Insert the Filenames You Want to Search, Separated with a Space...
Contents
How do I grep multiple files?
To search multiple files with the grep command, insert the filenames you want to search, separated with a space character. The terminal prints the name of every file that contains the matching lines, and the actual lines that include the required string of characters. You can append as many filenames as needed.
How do I grep to the second column?
3 Answers
- The -F, parameter specifies the delimiter, which is set to a comma for your data.
- $2 refers to the second column, which is what you want to match on.
- “ST” is the value you want to match.