Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 254 Bytes
#!/bin/bash
E_BADARGS=65
if [ ! -n "$1" ]
then
echo "Usage: normalize filepattern"
exit $E_BADARGS
fi
for file in $(find . -name "$1" -type f)
do
normalized="$(expand -t 4 $file)"
echo "$normalized" > "$file"
echo >> "$file"
done