-
-
Save errriclee/833140 to your computer and use it in GitHub Desktop.
pick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
run cp -v {} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for ARG in $* | |
do | |
echo $PWD/$ARG >> ~/.pick | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f ~/.pick ] | |
then | |
while read line | |
do | |
replaced=${*//\{\}/"${line}"} | |
($replaced) | |
done < ~/.pick | |
rm ~/.pick | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment