Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (9 sloc) 286 Bytes
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 pattern destination"
exit 1
fi
PATTERN=$1
DESTINATION=$2
# Pruning stuff prevents us from looking at the same directory twice
find . -path ./$DESTINATION -prune -o -iname $PATTERN -exec find-copy-to-dir-one {} $DESTINATION \;