Skip to content

Instantly share code, notes, and snippets.

@errriclee
Created February 18, 2011 02:14
Show Gist options
  • Save errriclee/833140 to your computer and use it in GitHub Desktop.
Save errriclee/833140 to your computer and use it in GitHub Desktop.
pick
#!/bin/sh
run cp -v {} .
#!/bin/sh
for ARG in $*
do
echo $PWD/$ARG >> ~/.pick
done
#!/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