tr -d '\r' < dosfile > unixfile Tem milhoes de outros jeitos tbm, isso ja foi ate' thread aqui na lista att, victor
2006/12/20, Celso Viana <[EMAIL PROTECTED]>: > Em 20/12/06, Jorge Petry<[EMAIL PROTECTED]> escreveu: > > Só para constar na lista, para quando alguem precisar. > > > > Durante muito tempo procurei a melhor forma de remover os ^M e > > > > derrepente me logo no servidor e aparece essa mensagem: > > > > > > Need to remove all those ^M characters from a DOS file? Try > > > > tr -d \\r < dosfile > newfile > > > > > > Abraços. > > > > > > > > > > ______________________________ > > Jorge Petry > > Adm de Redes & Servidores FreeBSD > > [EMAIL PROTECTED] > > FUG-BR User # 211 > > > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > > ou... tr -d "\15" < arquivo >arquivo_destino > > -- > Celso Vianna > BSD User: 51318 > http://www.bsdcounter.org > > 63 8404-8559 > Palmas/TO > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd