aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopy.sh7
-rwxr-xr-xmove.sh7
2 files changed, 14 insertions, 0 deletions
diff --git a/copy.sh b/copy.sh
new file mode 100755
index 0000000..402d84e
--- /dev/null
+++ b/copy.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Receives a filename as argument and copies it to a folder selecting it with fzf
+
+filename="$1"
+target="$(selectPathFzf.sh "Copy to: ")"
+cp "$filename" "$target"
diff --git a/move.sh b/move.sh
new file mode 100755
index 0000000..42b3384
--- /dev/null
+++ b/move.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Receives a filename as argument and moves it to a folder selecting it with fzf
+
+filename="$1"
+target="$(selectPathFzf.sh "Move to: ")"
+mv "$filename" "$target"