#!/bin/bash for f in /var/www/owncloud/apps/*/; do (cd "$f"; git pull); done