File size: 429 Bytes
5a600cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#------------------------------------------------------------------------------
# Script
#     find-trailingspace
#
# Description
#     Search for files with trailing whitesapce
#
#------------------------------------------------------------------------------
cd $WM_PROJECT_DIR || exit 1

tab=$'\t'

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

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