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