Skip to content

Instantly share code, notes, and snippets.

@kgabis
Created February 7, 2015 23:48
Show Gist options
  • Save kgabis/d209a9b474f98687692a to your computer and use it in GitHub Desktop.
Save kgabis/d209a9b474f98687692a to your computer and use it in GitHub Desktop.
Copy/paste util
#!/bin/bash
cwd=$(pwd)
rm /tmp/.copy_tmp
for var in "$@"
do
echo "$cwd/$var" >> /tmp/.copy_tmp
done
#!/bin/bash
while read -r line; do cp $line .; done < /tmp/.copy_tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment