Apply commands using find

find . -name *.class -type f -exec rm;

find . -type f |grep java|xargs sed -i -e ‘s/pattern/replace-for/g’

Leave a Reply