Last active 1729005637

origin_refer.md Raw

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)
rsmv.sh Raw
1#!/bin/bash
2
3# Safety check
4[ "$#" -eq 0 ] && "No input files" && exit 1
5
6rsync -aP --remove-source-files "$@" && rm -rf "${@:1:$#-1}"