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:
parent
bf8c7a80e9
commit
1b05651161
1 changed files with 4 additions and 0 deletions
|
@ -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 ...}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue