列印 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