rmv, mv with rsync
This commit is contained in:
@@ -182,8 +182,6 @@ function gcd() {
|
|||||||
|
|
||||||
function rmv () {
|
function rmv () {
|
||||||
#mv with rsync
|
#mv with rsync
|
||||||
local length
|
|
||||||
local sources
|
|
||||||
rsync -vaP --remove-source-files "$@"
|
rsync -vaP --remove-source-files "$@"
|
||||||
# remove empty folders from sources (not last argument)
|
# remove empty folders from sources (not last argument)
|
||||||
for (( i=1; i<=$(($#-1)); i++ ))
|
for (( i=1; i<=$(($#-1)); i++ ))
|
||||||
|
|||||||
Reference in New Issue
Block a user