[Li|U]nix: grep part 3: the + operator

Self-tutoring about [Li|U]nix: the tutor continues about grep capabilities.

On the system I use, the + (one or more) operator will work with grep if escaped. With the -E option you don’t have to escape it. Therefore,

grep “^t\w\+[.]txt”

will find t445.txt

. So will

grep -E “t\w+[.]txt”

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply