cat vi.html | awk '{sub("\r",""); print}' > vi.html.new cat for.html | awk '{gsub("\r$",""); print}' > for.html.1; mv for.html.1 for.html