1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-30 01:15:28 +02:00

cp: example using -t (#9706)

* Add example using -t

Think of:

    find . -name '*foobar*' -type f -print0 | xargs -0 cp -r DEST_DIR

All of the files passed by the pipe will remain in DEST_DIR

* cp: add missing ":" in description

* cp: fix typo

* Update pages/common/cp.md

* Fix typo
This commit is contained in:
Gilles Quenot 2023-01-03 10:34:10 +07:00 committed by GitHub
parent bf8c7a80e9
commit 1b05651161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,3 +26,7 @@
- Follow symbolic links before copying:
`cp -L {{link}} {{path/to/target_directory}}`
- Use the first argument as the destination directory (useful for `xargs ... | cp -t <DEST_DIR>`):
`cp -t {{path/to/target_directory}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`