Skip to content
Snippets Groups Projects
find-trailingspace 436 B
Newer Older
#!/bin/bash
#------------------------------------------------------------------------------
# Script
#     find-trailingspace
#
# Description
#     Search for files with trailing whitesapce
#
#------------------------------------------------------------------------------
set -x
cd $WM_PROJECT_DIR || exit 1

tab=$'\t'

git grep -c -E "[ $tab]+"'$' -- $@

#------------------------------------------------------------------------------