I am reading the man page, and found this blog post, and both seem to say the same thing, but it does not work.
I have a project where I need to batch replace lines like
import Foo from '/modules/foo/client/components/Foo.jsx';
into
import Foo from '/modules/foo/client/imports/Foo.jsx';
but I do not want to match lines like :
import Base from '/client/components/Base.jsx';
i.e. : only "imports" from the base dir /modules
.
I have tried
$ grep -R "modules.+components" modules/
but no match is found.
Any help with this would be appreciated. Thanks!