diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-07-17 16:58:12 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-07-17 16:58:12 +0200 |
commit | 25730d4bffa8c956090987344c8cd70ebdf47ac8 (patch) | |
tree | 2b9125eb96e6075927bd5f40d31ec8065dc757e0 /copy.sh | |
parent | 769812ad7cb98077cbf8d0893ebdc9b72a62dcc8 (diff) | |
download | scripts-25730d4bffa8c956090987344c8cd70ebdf47ac8.tar.gz scripts-25730d4bffa8c956090987344c8cd70ebdf47ac8.zip |
Created scripts to copy and move files using .paths file
Diffstat (limited to 'copy.sh')
-rwxr-xr-x | copy.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" |