fx grep

输出 Fuchsia 源中与指定模式匹配的行

usage: fx grep [options] <pattern> [-- type_filter...]

Convenience wrapper around 'jiri grep' to search the Fuchsia source tree and
print lines matching the given pattern.

Narrow your search to specific file types:
  c, cpp: C/C++ source and header files
  rs, rust: Rust source files
  py, python: Python source files
  go: Go source files
  dart: Dart source files
  fidl: FIDL source files
  proto: protobuf source files
  service, config: Services configuration files
  cm, manifest: Component manifest files
  gn: GN build files
  bzl: Bazel build files
  build: GN and Bazel build files
  md, doc: Documentation source files

The following example searches both C++ and Python files for 'tcgetattr':
  fx grep tcgetattr -- cpp py

grep 源代码