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:
@@ -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 ...}}`
|
||||
|
||||
Reference in New Issue
Block a user