Home Explore Blog CI



man-pages

11th chunk of `tar.man`
b9fd563ca8e421bdfbcee3e74e4d95d2d66efdf9056588880000000100000fac
 name; the mtime of that file is used as the date.

       --no-null
              Disable the effect of the previous --null option.

       --no-recursion
              Avoid descending automatically in directories.

       --no-unquote
              Do not unquote input file or member names.

       --no-verbatim-files-from
              Treat  each line read from a file list as if it were supplied in the command line.  I.e., leading and trailing whitespace is removed and, if the resulting string begins with a dash, it is treated as tar command
              line option.

              This is the default behavior.  The --no-verbatim-files-from option is provided as a way to restore it after --verbatim-files-from option.

              This option is positional: it affects all --files-from options that occur after it in, until --verbatim-files-from option or end of line, whichever occurs first.

              It is implied by the --no-null option.

       --null Instruct subsequent -T options to read null‐terminated names verbatim (disables special handling of names that start with a dash).

              See also --verbatim-files-from.

       -N, --newer=DATE, --after-date=DATE
              Only store files newer than DATE.  If DATE starts with / or . it is taken to be a file name; the mtime of that file is used as the date.

       --one-file-system
              Stay in local file system when creating archive.

       -P, --absolute-names
              Don’t strip leading slashes from file names when creating archives.

       --recursion
              Recurse into directories (default).

       --suffix=STRING
              Backup before removal, override usual suffix.  Default suffix is ~, unless overridden by environment variable SIMPLE_BACKUP_SUFFIX.

       -T, --files-from=FILE
              Get names to extract or create from FILE.

              Unless specified otherwise, the FILE must contain a list of names separated by ASCII LF (i.e. one name per line).  The names read are handled the same way as command line arguments.  They undergo quote  removal
              and word splitting, and any string that starts with a - is handled as tar command line option.

              If this behavior is undesirable, it can be turned off using the --verbatim-files-from option.

              The --null option instructs tar that the names in FILE are separated by ASCII NUL character, instead of LF.  It is useful if the list is generated by find(1) -print0 predicate.

       --unquote
              Unquote file or member names (default).

       --verbatim-files-from
              Treat  each  line  obtained  from a file list as a file name, even if it starts with a dash.  File lists are supplied with the --files-from (-T) option.  The default behavior is to handle names supplied in file
              lists as if they were typed in the command line, i.e. any names starting with a dash are treated as tar options.  The --verbatim-files-from option disables this behavior.

              This option affects all --files-from options that occur after it in the command line.  Its effect is reverted by the --no-verbatim-files-from} option.

              This option is implied by the --null option.

              See also --add-file.

       -X, --exclude-from=FILE
              Exclude files matching patterns listed in FILE.

   File name transformations
       --strip-components=NUMBER
              Strip NUMBER leading components from file names on extraction.

       --transform=EXPRESSION, --xform=EXPRESSION
              Use sed replace EXPRESSION to transform file names.

   File name matching options
       These options affect both exclude and include patterns.

       --anchored
              Patterns match file name start.

       --ignore-case
              Ignore case.

       --no-anchored
              Patterns match after any / (default for exclusion).

       --no-ignore-case
              Case sensitive matching (default).

Title: GNU tar: Further Local File Selection and File Name Transformations
Summary
This section of the GNU tar manual continues detailing local file selection options. It includes options for using null-terminated names with -T (--null), specifying a date for newer files (--newer, --after-date), staying within the local file system (--one-file-system), preserving absolute names (--absolute-names), enforcing recursion (--recursion), defining a suffix for backup files (--suffix), reading file names from a file (-T, --files-from), unquoting file names (--unquote), treating file names from a file verbatim (--verbatim-files-from), and excluding files based on patterns from a file (-X, --exclude-from). It also covers file name transformations using sed expressions (--transform, --xform) and file name matching options such as anchoring and case sensitivity (--anchored, --ignore-case, --no-anchored, --no-ignore-case).