Skip to main content
added 6 characters in body
Source Link
noAnton
  • 369
  • 1
  • 6

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

Note: This approach will not work if the search-pattern contains a //

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

Note: This approach will not work if the search-pattern contains a /

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

Note: This approach will not work if the search-pattern contains a /

added caveat-description
Source Link
noAnton
  • 369
  • 1
  • 6

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

Note: This approach will not work if the search-pattern contains a /

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique

Note: This approach will not work if the search-pattern contains a /

Source Link
noAnton
  • 369
  • 1
  • 6

I think with the default capabilities of grep there in no way of doing this.

You could go with something like this, which is just a "small" regex:

grep -r asdf | sed '#^.*/##' | sort --unique