[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Removing ^M in files--in bulk?



Quoting kvaughan@bc.cc.ca.us (kvaughan@bc.cc.ca.us):
> All of them have this control character (^M) at the end of each line, as
> seen in vi (which I know v. little about except very basic I/O).  These need
> to be removed before the files can be compiled.  

perl -pi -e 's/\r//' *.txt 

(or *.whatever)

Mike Stone


Reply to: