#!/bin/sh echo Removing LineFeeds from.... tmp=tmpfile$RANDOM for file do echo - $file cat $file | tr -d \\r > $tmp mv $tmp $file done