origin_refer.md
· 190 B · Markdown
Raw
https://www.baeldung.com/linux/moving-files-showing-progress
```bash
$ rsmv ~/.cache/ctrlp /tmp/cache
mru/
mru/cache.txt
749 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
```
https://www.baeldung.com/linux/moving-files-showing-progress
$ rsmv ~/.cache/ctrlp /tmp/cache
mru/
mru/cache.txt
749 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
1 | #!/bin/bash |
2 | |
3 | # Safety check |
4 | [ "$#" -eq 0 ] && "No input files" && exit 1 |
5 | |
6 | rsync -aP --remove-source-files "$@" && rm -rf "${@:1:$#-1}" |