github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/docs/content/commands/rclone_cat.md (about)

     1  ---
     2  date: 2019-06-20T16:09:42+01:00
     3  title: "rclone cat"
     4  slug: rclone_cat
     5  url: /commands/rclone_cat/
     6  ---
     7  ## rclone cat
     8  
     9  Concatenates any files and sends them to stdout.
    10  
    11  ### Synopsis
    12  
    13  
    14  rclone cat sends any files to standard output.
    15  
    16  You can use it like this to output a single file
    17  
    18      rclone cat remote:path/to/file
    19  
    20  Or like this to output any file in dir or subdirectories.
    21  
    22      rclone cat remote:path/to/dir
    23  
    24  Or like this to output any .txt files in dir or subdirectories.
    25  
    26      rclone --include "*.txt" cat remote:path/to/dir
    27  
    28  Use the --head flag to print characters only at the start, --tail for
    29  the end and --offset and --count to print a section in the middle.
    30  Note that if offset is negative it will count from the end, so
    31  --offset -1 --count 1 is equivalent to --tail 1.
    32  
    33  
    34  ```
    35  rclone cat remote:path [flags]
    36  ```
    37  
    38  ### Options
    39  
    40  ```
    41        --count int    Only print N characters. (default -1)
    42        --discard      Discard the output instead of printing.
    43        --head int     Only print the first N characters.
    44    -h, --help         help for cat
    45        --offset int   Start printing at offset N (or from end if -ve).
    46        --tail int     Only print the last N characters.
    47  ```
    48  
    49  See the [global flags page](/flags/) for global options not listed here.
    50  
    51  ### SEE ALSO
    52  
    53  * [rclone](/commands/rclone/)	 - Show help for rclone commands, flags and backends.
    54