~/ learn/ comp-325/ cards/ Building a pattern out of position constraints
1 of 9

Build the pattern one constraint at a time, testing with echo

Build the pattern one constraint at a time, testing with echo

Answer

echo ~/personal/[bcAT]* echo ~/personal/[bcAT]??* echo ~/personal/[bcAT]??[^0-9a-zA-Z]*

Each line adds exactly one constraint, and the selection should shrink each time. If it does not shrink, the element you just added is not doing what you think.

Sarwar & Koretsky 3e ch4 §4.5.2

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/5854cb32-1066-41dc-9505-b87550abddc3/flashcard utf-8 LF