The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How To replace Control-M in all files in a folder
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How To replace Control-M in all files in a folder
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
06-22-2007
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,433
Code:
for file in $directoty/* do tr -d '\r' <$file >temp.$$ && mv temp.$$ $file done
aigles
View Public Profile
Find all posts by aigles
Find aigles's past nominations received
Find aigles's present nominations given