#!/bin/sh #------------------------------------------------------------------------------ # Script # git-find-trailingspace # # Description # Use git grep to find files with trailing whitespace # #------------------------------------------------------------------------------ git grep --count -P '\s+$' -- $@ #------------------------------------------------------------------------------