Mac の .txt ファイルが正しく変換されません。

Mac の .txt ファイルが正しく変換されません。

Macには.txtファイルがあり、Raspbianを実行しているRaspberry Piに送信し、nanoで開くと奇妙に変換されます。例:

Mac OSXのテキストファイル:

http://welcome.hp.com/country/us/en/prodserv/servers.html
http://www8.hp.com/us/en/products/data-storage/overview.html

Raspbianのテキストファイル:

Servers & Blades
Storage
http://welcome.hp.com/country/us/en/prodserv/servers.html^Mhttp://www8.hp.com/us/en/products/data-storage/overview.html        

助けてくれてありがとう。

ベストアンサー1

sed -i 's/\r/\n/g' thefile.txt

\r「クラシック」macosが行末文字として使用されます。 *nixを使う\n

おすすめ記事