On Nov 29, 2:07pm, Don Harrop wrote: > I've got an output file where each line ends with a ^M. I'm trying to get > sed to filter out the ^M but cat doesn't print it. I need to encorporate > the solution into a script file so search and replace with a text editor > wont do the trick either.. Any ideas? Use Perl. perl -pe 's/\r//' outfile Kevin