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 -->
#
4
(
permalink
)
06-22-2007
zedex
Registered User
Join Date: Feb 2007
Location: india,mumbai
Posts: 138
perl way
this is what we use
perl
-p -i -e 's/^M$//' *
or
perl
-p -i -e 's/\r//' *
where * for all files i dont know how to use it recursively
zedex
View Public Profile
Find all posts by zedex
Find zedex's past nominations received
Find zedex's present nominations given