Command wc has an option –files0-from=F. According to the manual, it reads input from the files specified by NUL-terminated names in file F; If F is – then read names from standard input. Why NUL-terminated names? Isn’t it more convenient just separating the names with newline or space?
Command wc has an option –files0-from=F. According to the manual, it reads input from
Share
It’s more convenient if you have filenames with spaces (or new-lines, or tabs) in them.
This is sometimes used with
find -print0that outputs its list of files with\0as a separator instead of spaces.xargshas a-0option for similar reasons.