# Ignore packages folders, list only matching files, case-insensitive search for 'foo'. rg -li -g '!*/packages/*' 'foo'