Wednesday, March 9, 2011

Using find

find with -prune to kill .svn dirs:
find . -path '*/.svn' -prune -o -print
this works better:
find examples -not -name .svn -name '*.java'

for loop in bash

for i in $(seq 1 1 200)
do
cp collectionobject.xml import/collectionobject$i.xml
done