Skip to content
Advertisement

Tag: oh-my-zsh

Exclude directory when grepping with zsh globbing

I have some file structure which contains projects with build folders at various depths. I’m trying to use zsh (extended) globbing to exclude files in build folders. I tried using the following command and many other variants: grep “string” (^build/)# I’m reading this as “Any folder that doesn’t match build 0 or more times.” However I’m still getting results from

Advertisement