#!/bin/sh if file "$1" | grep -c -b text; then dos2unix "$1"; fi