grep will return the input (eg."dir1", "dir2", "dir3"), if the glob returns true. Perhaps you want map.
In reply to Re: Using grep and glob to find directories containing file
by BrowserUk
in thread Using grep and glob to find directories containing file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |