perl -lpe 'BEGIN{$/ = "\r\n"}' -i.bak filename.txt #### perl -lp015 -e";" -i.bak filename.txt