Scan QR code or get instant email to install app
Question:
The -c flag in grep is used to tally the number of instances of a specific string in a file. The -n flag displays the matching lines along with their line numbers. Even if one is unsure about the flag options, the syntax can be helpful in answering such questions. In grep, the pattern is entered prior to the filename, enabling the exclusion of two of the options right away.
Comments