#!/bin/sh for i in *; do if [ -d $i ]; then echo $i phpcs $i > /tmp/phpcs-$i.xml fi done