Search for a "string" or "String with Spaces" recursively that may be a file- or directory-name or a text inside a file

Trending 4 months ago

I would for illustration to hunt for nan drawstring rstudio (and its different imaginable combinations mentioned below) recursively starting from /.

In immoderate locations, rstudio is simply a drawstring wrong different record (but this file-name is not known); and successful different locations, rstudio itself is simply a (part of a) file-name (e.g., rstudio 2023-10-20 aliases 2022-10-20-rstudio-file), and this (part of a) file-name is not known. Also, to make matters much complicated, sometimes it is RStudio and sometimes it is R Studio – different cases and/or pinch spaces.

To summarize, nan imaginable combinations are

  • rstudio is simply a drawstring wrong a file
  • rstudio is simply a file-name
  • rstudio is simply a directory-name

In each of nan supra 3 lines, do see that nan drawstring tin beryllium rstudio aliases R Studio aliases Rstudio aliases r Studio aliases 2022-10-20 RStudio file. (I dream you get nan various imaginable situations.)

For nan output,

  • if rstudio (or immoderate of its supra combinations) is nan sanction of a file, past I request nan sanction of nan directory for that file,

and

  • if rstudio (or immoderate of its supra combinations) is simply a drawstring wrong different file, past I request nan corresponding file-name and its location.

Can personification please thief me? I looked up connected a fewer answers utilizing find and grep but I americium not capable to get it.

More
close