#!/bin/sh for patch in $HOME/Documents/freebsd-patches/*.patch; do git -C /usr/src am < $patch done