diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-09-12 17:13:43 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-09-12 17:13:43 +0200 |
commit | f0e0e163c16d9b784065d8eda93845141c0a475f (patch) | |
tree | 58beb31e4475e6af0786623e1d7bb73de4ab0de6 | |
parent | b2c6ecfb7127e8df7c229997ec46c5653ffc5db3 (diff) | |
download | scripts-f0e0e163c16d9b784065d8eda93845141c0a475f.tar.gz scripts-f0e0e163c16d9b784065d8eda93845141c0a475f.zip |
Modified copy.sh and move.sh so they work with multiple files.
-rwxr-xr-x | copy.sh | 5 | ||||
-rwxr-xr-x | move.sh | 5 |
2 files changed, 4 insertions, 6 deletions
@@ -1,7 +1,6 @@ #!/bin/sh -# Receives a filename as argument and copies it to a folder selecting it with fzf +# Receives filenames as arguments and copies them to a folder selected with fzf -filename="$1" target="$(selectPathFzf.sh "Copy to: ")" -cp "$filename" "$target" +cp "$@" "$target" @@ -1,7 +1,6 @@ #!/bin/sh -# Receives a filename as argument and moves it to a folder selecting it with fzf +# Receives filenames as arguments and moves them to a folder selected with fzf -filename="$1" target="$(selectPathFzf.sh "Move to: ")" -mv "$filename" "$target" +mv "$@" "$target" |