Canivete! 🔩 Remove linhas em brancos: sed '/^$/d' <in> > <out> Adiciona vírgula no fim de cada linha: sed 's/$/,/' <in> > <out> Remover ^M no final da lina: perl -pi -e 's/\r\n/\n/g' <file>