gdcloud storage cat

NAME

gdcloud storage cat - Output the contents of one or more URLs to stdout.

SYNOPSIS

gdcloud storage cat [URLS ...]
    [--display-url, -d]
    [--range, -r]
    [--format=FORMAT]
    [--log-http]
    [--verbosity=VERBOSITY] [flags]

EXAMPLES

The following command writes all text files in a bucket to stdout:

    gdcloud storage cat s3://bucket/*.txt

The following command outputs a short header describing file.txt, along with its contents:

    gdcloud storage cat -d s3://my-bucket/file.txt

The following command outputs bytes 256-939 of file.txt:

    gdcloud storage cat -r 256-939 s3://my-bucket/file.txt

The following command outputs the last 5 bytes of file.txt:

    gdcloud storage cat -r -5 s3://my-bucket/file.txt

OPTIONAL FLAGS

  -d, --display-url        Print the header before each object.
      --format string      Set the format for printing command output resources. The default is a
                           command-specific human-friendly output format. The supported formats are
                           limited to: config, csv, default, diff, disable, flattened, get, json,
                           list, multi, none, object, table, text, value, yaml.
  -h, --help               help for cat
      --log-http           Log all HTTP server requests and responses to stderr.
  -r, --range string       Output just the specified byte range of the
                           object. In a case where "start" = 'x', and "end" = 'y', ranges take the
                           form: x-y (e.g., -r 256-5939), x- (e.g., -r 256-), -y (e.g., -r -5)
                           
                           When offsets start at 0, x-y means to return bytes x through y (inclusive),
                           x- means to return bytes x through the end of the object, and -y changes the
                           role of y. If -y is present, then it returns the last y bytes of the object.
                           
                           If the bytes are out of range of the object, then nothing is printed.
      --verbosity string   Override the default verbosity for this command. VERBOSITY must be one of:
                           debug, info, warning, error, critical, none. (default "warning")