mv: improve example command (#13423)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: jxu <7989982+jxu@users.noreply.github.com>
pull/28/head
Fazle Arefin 2024-08-22 08:08:09 +10:00 committed by GitHub
parent ef2ee5eaac
commit 9b773a1e09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,6 @@
`mv --verbose {{path/to/source}} {{path/to/target}}`
- Specify target directory (convenient in situations when the target directory has to be the first argument):
- Specify [t]arget directory so that you can use external tools to gather movable files:
`ls | {{parallel|xargs}} mv -t {{path/to/target_directory}}`
`{{find /var/log -type f -name '*.log' -print0}} | {{xargs -0}} mv --target-directory {{path/to/target_directory}}`