quick-copy: just rsyncs bash, perl and python scripts

This commit is contained in:
Jed Reynolds
2020-03-23 14:05:18 -07:00
parent e3d0863564
commit 81964c40f7

8
quick-copy.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
[[ x$1 == x ]] && echo "Copy to what hostname?" && exit 1
[ ! -f quick-copy.sh ] && echo "What directory are you in? $CWD" && exit 2
rm -f /tmp/qq.txt
find -iname "*pl" -o -iname "*pm" -o -iname "*sh" -o -iname "*py" > /tmp/qq.txt
rsync -rv --files-from=/tmp/qq.txt . "$1"