====== dos2unix ====== ===== Information ===== A few ways to remove dos-formatted linebreaks (''^M'') from your code. ===== Procedure ===== * the culprit - ''^M'' - is actually two characters: ''^v'' and ''^m'' * ''^v'' is ctrl-v * ''^m'' is ctrl-m ==== vi ==== * search for ''^M'' and replace it with nothing:\\ :%s/^v^m//g ==== perl ==== * same as vi:\\ perl -pi -e "s:^v^m::g" ===== Reference Links ===== * [[http://www.freebsddiary.org/control-m.php]] == \\ \\ {{tag>:freebsd}}