1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

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>
This commit is contained in:
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

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}}`