The Beginning of Line anchor and the End of Line anchor are "^" and "$". I'm going to show you how to use these special charactors using regular expressions to look for a string/word/pattern that is in specific locations(Beginning/Ending of line).
Example:
grep ^Begin grep END$ grep ^thewordURLookingforatbeginningoffline grep the wordURLookingforattheENDoftheLine$
Link to this comment:
All Comments (0)