# Search substring in filesystem

This unit supplies "search ( str -- )". It is a word that recursively walks the
current context, opening every file it encounters and looking inside it for the
specified substring. If an occurrence of it is found, print the path of the
file that contains it. Examples:

  needs fs/search
  p"" "foo" search \ search "foo" in whole FS
  p"lib" "bar" search \ search "bar" in "lib" subdir