blob: 570f63d837875e22b4719f08ad3d5ac308f6cf16 [file] [log] [blame]
#!/bin/sh
#
# Convert all text files in the current directory and in all
# subdirectories to dos line endings.
#
todos_if_text () {
file $1 | grep -q text
if [ $? -eq 0 ]; then
todos $1
fi
}
for name in `find . -type f -print 2>/dev/null`
do
todos_if_text $name
done