Command used for the job: egrep -rl ' $' --include *.c --include *.h --include *.s --include *.inc --include *.txt * | xargs sed -i 's/\s\+$//g' Credits to Grant Murphy from Stack Overflow.
Also VAR_TRICK_HOUSE_LEVEL
Fixed some confusing naming, named some unknown symbols, and fixed the names of some flags.