Skip to content

Instantly share code, notes, and snippets.

@savelichalex
Created June 20, 2016 12:38
Show Gist options
  • Save savelichalex/fe80dc3f1a1ca6c633010578d92b030a to your computer and use it in GitHub Desktop.
Save savelichalex/fe80dc3f1a1ca6c633010578d92b030a to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in "$@"
do
case $i in
-p=*|-path=*)
find "./${i#*=}" -type file -exec /bin/cp {} $(pwd) \;
rm -rf "./${i#*=}";
;;
*)
#unknown option
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment