By default, grep matches the given string/pattern if it found as a substring in a file.
- You can display the lines that are not matched with the specified search sting pattern using the *-v* option.
- The *-w* option to grep makes it match only the whole words.
- We can make the grep to display only the matched string by using the *-o* option.
- The *^* regular expression pattern specifies the start of a line. This can be used in grep to match the lines which start with the given string or pattern.
- The *$* regular expression pattern specifies the end of a line. This can be used in grep to match the lines which end with the given string or pattern.
The datafile contains aggregate individual statistics for 67 NBA seasons. from basic box-score attributes such as points, assists, rebounds etc., to more advanced money-ball like features such as Value Over Replacement.