3 ms·
cpio is the better tool for the job in the last example, compared to tar. You don't have to use xargs, for one. It's safer to use `find -0 | cpio -0o` because i
by jeffbee 6y ago
cpio is the better tool for the job in the last example, compared to tar. You don't have to use xargs, for one. It's safer to use `find -0 | cpio -0o` because it can handle weird filenames that contain newlines or other spaces.
- ed25519FUUU 6y agoFile names that contain newlines??
- kaszanka 6y agoYes, just one of the numerous pitfalls you always have to be mindful of when using Unix shell commands.