github.com/m3db/m3@v1.5.0/src/cmd/tools/read_index_segments/README.md (about)

     1  # read_segments
     2  
     3  `read_segments` is a utility to read segments in a given directory.
     4  
     5  # Usage
     6  ```
     7  $ git clone git@github.com:m3db/m3.git
     8  $ make read_segments
     9  $ ./bin/read_segments
    10  Usage: read_index_segments [-o value] [-p value] [parameters ...]
    11   -o, --output-file=value
    12         Output JSON file of line delimited JSON objects for each
    13         segment
    14   -p, --path-prefix=value
    15         Path prefix [e.g. /var/lib/m3db]
    16  ```