Do not create files if they do not exist. The truncate utility does not treat this as an error. No error messages are displayed and the exit value is not affected.
-r rfile
Truncate files to the length of the file rfile.
-s -Xo
.Sm off [+ | -] size [K | k | M | m | G | g] .Sm on
If the size argument is preceded by a plus sign (+), files will be extended by this number of bytes. If the size argument is preceded by a dash (-), file lengths will be reduced by no more than this number of bytes, to a minimum length of zero bytes. Otherwise, the size argument specifies an absolute length to which all files should be extended or reduced as appropriate.
The size argument may be suffixed with one of K, M or G (either upper or lower case) to indicate a multiple of Kilobytes, Megabytes or Gigabytes respectively.
Exactly one of the -r and -s options must be specified.
If a file is made smaller, its extra data is lost. If a file is made larger, it will be extended as if by writing bytes with the value zero. If the file does not exist, it is created unless the -c option is specified.
Note that, while truncating a file causes space on disk to be freed, extending a file does not cause space to be allocated. To extend a file and actually allocate the space, it is necessary to explicitly write data to it, using (for example) the shells >> redirection syntax, or dd(1).