DelphiFAQ Home Search:

Converting Mac style text files to Unix style

 

comments192 comments. Current rating: 3 stars (185 votes). Leave comments and/ or rate it.

Question:


I moved a folder of HTML files from a Mac to a Unix box and now the files look messy. I see lots of ^M characters in vi. How can I clean it up?

Answer:


Applications on the Mac platform usually use carriage returns (#13 or ^M) as line separators.
Windows applications use carriage return + line feed (#13#10 or ^M^J).
Unix applications use only line feed (#10, ^J)

The best thing to do is to configure your ftp tool (e.g. Dreamweaver) to send files 'ASCII' style.

You can also use the following unix command to edit your file. The '\r' is the carriage return, replaced by a newline '\n'

The second command does the same, using perl instead.

If your Linux installation has the tool mac2unix (e.g. in /usr/bin) then you may use this tool. It can take wildcards!

tr '\r' '\n' <index.html >index2.html

perl -p -e 's/\r/\n/g'  <index.html >index2.html

// convert all html files using /usr/bin/mac2unix
mac2unix *.html

// recursively convert all html files in subdirectories
find . | mac2unix

Content-type: text/html

Comments:

You are on page 10 of 13, other pages: 1 2 3 7 8 9 [10] 11 12 13
2013-12-30, 19:51:00
discover this info here  
rating
ygtvesop http://paydayloansu..plc.co.uk/ discover this info here ymxaOV http://paydayloansusaplc.com/ original site %-[[[ http://paydayloansusaple.com/ payday loans 1395
2013-12-31, 05:37:12
visit this link  
rating
ajjlpd http://paydayloansu..plc.co.uk/ visit this link LyfDEy http://paydayloansusaplc.com/ read the article BzFre http://paydayloansusaple.com/ payday loans 9935
2013-12-31, 06:44:37
payday loans  
rating
2013-12-31, 19:09:14
check  
rating
2014-01-02, 19:44:43
see here now  
rating
jkphqsik http://paydayloansusaplf.com/ see here now >:]] http://paydayloansu..plf.co.uk/ payday loans VMTAPR http://paydayloansusaplg.com/ payday loans 8]]]
2014-01-03, 19:15:35
visit this website  
rating
fplpesaq http://paydayloansusaplf.com/ visit this website NGLrq http://paydayloansu..plg.co.uk/ payday loan fkjXr http://paydayloansusaplg.com/ payday loans :-O
2014-01-13, 21:42:31
payday loans  
rating
2014-01-14, 04:29:47
payday loans  
rating
weoshxqh http://paydayloansusaplh.com/ payday loans uMaAF http://paydayloansu..plj.co.uk/ payday loans ejPJO http://paydayloansusaplj.com/ payday loans :-O
2014-01-15, 04:44:51
payday loans  
rating
krtiiee http://paydayloansbsd.com/ payday loans 1023 http://paydayloans24x7.com/ payday loans 8430 http://paydayloansnsa.com/ payday loans xKzVXT http://paydayloansmsa.com/ payday loans 5795 http://2012paydayloans.net/ payday loans 3258 http://usapaydayloans24.com/ payday loans >:]]
2014-01-17, 01:10:17
anonymous from United States  
紅蜘蛛: http://xn--19zl5rhf..anpo.net/
紅蜘蛛: http://紅蜘蛛.akanpo.net/
紅蜘蛛: http://www.akanpo.n..t/111.html
D10催情剤: http://www.akanpo.n../315.html
威哥王: http://www.akanpo.n../299.html
巨人倍増: http://www.akanpo.n..t/36.html
花痴: http://www.akanpo.n../325.html
淫インモラル: http://www.akanpo.n../477.html
インモラル: http://www.akanpo.n../477.html
妖姫: http://www.akanpo.n../476.html
RU486: http://www.akanpo.n../232.html
VigRx: http://www.akanpo.n../451.html
絶對高潮: http://www.akanpo.n../340.html
女性用バイアグラ: http://www.akanpo.n../579.html
D8 催情剤: http://www.akanpo.n..t/81.html
FLY D5: http://www.akanpo.n../102.html
D5原液: http://www.akanpo.n../102.html
蒼蝿水: http://www.akanpo.n../103.html
美人豹: http://www.akanpo.n../223.html
花之欲: http://www.akanpo.n../128.html
催情丹: http://www.akanpo.n../443.html
妻之友: http://www.akanpo.n../390.html
Wenickman: http://www.akanpo.n../284.html
モチベーター: http://www.akanpo.n..t/95.html
力多精: http://www.akanpo.n../304.html
勃動力三體牛鞭: http://www.akanpo.n../413.html
蔵秘男宝: http://www.akanpo.n../182.html
中華牛鞭: http://www.akanpo.n../134.html
好漢哥: http://www.akanpo.n../463.html
魔根: http://www.akanpo.n..t/87.html
999 神油: http://www.akanpo.n../363.html
黑色風暴: http://www.akanpo.n../385.html
奇果: http://www.akanpo.n../401.html
夜夜堅: http://www.akanpo.n../160.html
MaxMan: http://www.akanpo.n../459.html
リドスプレー: http://www.akanpo.n..t/53.html
アフリカ超人: http://www.akanpo.n../569.html
蔵秘雄精: http://www.akanpo.n../571.html
徳国黒金: http://www.akanpo.n../577.html
夜狼神: http://www.akanpo.n../570.html
中華牛鞭: http://www.akanpo.n../134.html
VVK: http://www.akanpo.n..t/97.html
牛黄清心丸: http://www.akanpo.n../286.html
悦可亭: http://www.akanpo.n../307.html
止血薬 カルバゾクロム錠: http://www.akanpo.n../575.html
セフラジン: http://www.akanpo.n../576.html
消渇丸: http://www.akanpo.n../169.html
終極痩身: http://www.akanpo.n../434.html
韓国痩身一号: http://www.akanpo.n../208.html
日本秀身堂: http://www.akanpo.n../249.html
御秀堂: http://www.akanpo.n../150.html
男露888: http://www.akanpo.n../335.html
蔵八宝: http://www.akanpo.n../449.html
Xing霸: http://www.akanpo.n../309.html
頂点3000: http://www.akanpo.n../462.html
鹿茸腎宝: http://www.akanpo.n../195.html
男根増長素: http://www.akanpo.n../446.html
黒倍王: http://www.akanpo.n..t/85.html
性霸2000: http://www.akanpo.n../309.html
蟻王: http://www.akanpo.n..t/59.html
アリ王: http://www.akanpo.n..t/59.html

壮三天: http://www.akanpo.n../458.html
壮天根: http://www.akanpo.n..t/93.html
狼1号: http://www.akanpo.n..t/92.html
狼一号: http://www.akanpo.n..t/92.html
五便宝: http://www.akanpo.n../381.html
三便宝: http://www.akanpo.n..t/233.html
男宝: http://www.akanpo.n..t/52.html
ビグレックス: http://www.akanpo.n../238.html
魔鬼天使性欲粉: http://www.akanpo.n../112.html
三鞭粒: http://www.akanpo.n../440.html
九鞭粒: http://www.akanpo.n../440.html
法国性奴: http://www.akanpo.n../438.html
蟻力神: http://www.akanpo.n../154.html
vigrxプラス: http://www.akanpo.n..t/238.html
LIDO SPRAY: http://www.akanpo.n..t/53.html
金博郎: http://www.akanpo.n../418.html
立挺90度: http://www.akanpo.n../384.html
新一粒神: http://www.akanpo.n../448.html
金動力: http://www.akanpo.n../442.html
安宮牛黄丸: http://www.akanpo.n../235.html
碧生源減肥: http://www.akanpo.n../574.html
藏秘男宝: http://www.akanpo.n../182.html
VOV催情液: http://www.akanpo.n..t/44.html
VOV催情粉: http://www.akanpo.n..t/46.html
強効痩: http://www.akanpo.n../174.html
天天素: http://www.akanpo.n../251.html
三體牛鞭: http://www.akanpo.n..t/91.html
三体牛鞭: http://www.akanpo.n..t/91.html
2014-01-17, 01:12:06
anonymous from United States  
http://www.allkanpo..youhi.html 妖姫
http://www.allkanpo..moral.html 淫インモラル
http://www.allkanpo..8E%8B.html 威哥王
http://www.allkanpo..9B%9B.html 紅蜘蛛
http://www.allkanpo..moral.html インモラル
http://www.allkanpo..97%B4.html 花痴
http://www.allkanpo..t/D10.html D10催情剤
http://www.allkanpo..RU486.html RU486
http://www.allkanpo..VigRx.html VigRx
http://www.allkanpo..A2%97.html 巨人倍増
http://www.allkanpo..9E%9C.html 奇果
http://www.allkanpo..A0%85.html 夜夜堅
http://www.allkanpo..axMan.html MaxMan
http://www.allkanpo..SPRAY.html リドスプレー
http://www.allkanpo..aoren.html アフリカ超人
http://www.allkanpo..KGOLD.html 徳国黒金
http://www.allkanpo..B2%BE.html 蔵秘雄精
http://www.allkanpo..gshen.html 夜狼神
http://www.allkanpo..9E%AD.html 中華牛鞭
http://www.allkanpo..ckman.html VVK
http://www.allkanpo..ckman.html Wenickman
http://www.allkanpo..tivat.html モチベーター
http://www.allkanpo..B2%BE.html 力多精
http://www.allkanpo..9E%AD.html 勃動力三體牛鞭
http://www.allkanpo..AE%9D.html 蔵秘男宝
http://www.allkanpo..9E%AD.html 中華牛鞭
http://www.allkanpo..93%A5.html 好漢哥
http://www.allkanpo..8D%89.html 魔根
http://www.allkanpo..B2%B9.html 999 神油
http://www.allkanpo..9A%B4.html 黑色風暴
http://www.allkanpo..B2888.html 男露888
http://www.allkanpo..AE%9D.html 蔵八宝
http://www.allkanpo..9C%B8.html 性霸2000
http://www.allkanpo..N3000.html 頂点3000
http://www.allkanpo..AE%9D.html 鹿茸腎宝
http://www.allkanpo..ngzzw.html 男根増長素
http://www.allkanpo..8E%8B.html 黒倍王
http://www.allkanpo..TKING.html 蟻王
http://www.allkanpo..TKING.html アリ王
http://www.allkanpo..9C%B8.html Xing霸
http://www.allkanpo..BD%AE.html 絶對高潮
http://www.allkanpo..weige.html 女性用バイアグラ
http://www.allkanpo..egeD8.html D8 催情剤
http://www.allkanpo..B0%B4.html FLY D5
http://www.allkanpo..0%B45.html D5原液
http://www.allkanpo..B0%B4.html 蒼蝿水
http://www.allkanpo..B1%B9.html 美人豹
http://www.allkanpo..AC%B2.html 花之欲
http://www.allkanpo..8F%8B.html 妻之友
http://www.allkanpo..qingj.html 催情丹
http://www.allkanpo..B8%B8.html 牛黄清心丸
http://www.allkanpo..BA%AD.html 悦可亭
http://www.allkanpo..ueyao.html 止血薬 カルバゾクロム錠
http://www.allkanpo..wuzhi.html セフラジン
http://www.allkanpo..B8%B8.html 消渇丸
http://www.allkanpo..ushen.html 終極痩身
http://www.allkanpo..AE%B1.html 日本秀身堂
http://www.allkanpo..%AB48.html 御秀堂
http://www.allkanpo..F%B75.html 韓国痩身一号

http://www.allkanpo..A5%9E.html 蟻力神
http://www.allkanpo..AE%9D.html 三便宝
http://www.allkanpo..8F%B7.html 狼1号
http://www.allkanpo..8F%B7.html 狼一号
http://www.allkanpo..oLang.html 金博郎
http://www.allkanpo..AE%9D.html 五便宝
http://www.allkanpo..AE%9D.html 男宝
http://www.allkanpo..ianli.html 九鞭粒
http://www.allkanpo..fagou.html 法国性奴
http://www.allkanpo..A5%9E.html 新一粒神
http://www.allkanpo..98%A5.html 福源春
http://www.allkanpo..BD%BF.html 魔鬼天使性欲粉
http://www.allkanpo..B2.htmlVOV 催情液
http://www.allkanpo..t/VOV.html VOV催情粉
http://www.allkanpo..A0%B9.html 壮天根
http://www.allkanpo..9E%AD.html 三體牛鞭
http://www.allkanpo..B8%B8.html 安宮牛黄丸
http://www.allkanpo..gyuan.html 碧生源減肥
http://www.allkanpo..0%B42.html 西班牙蒼蝿水
http://www.allkanpo..weige.html 三鞭粒
2014-01-17, 01:13:42
anonymous from United States  
妖姫: http://www.allkanpo..ouhi.html
淫インモラル: http://www.allkanpo..oral.html
威哥王: http://www.allkanpo..E%8B.html
紅蜘蛛: http://www.allkanpo..B%9B.html
インモラル: http://www.allkanpo..oral.html
花痴: http://www.allkanpo..7%B4.html
D10催情剤: http://www.allkanpo../D10.html
RU486: http://www.allkanpo..U486.html
VigRx: http://www.allkanpo..igRx.html
巨人倍増: http://www.allkanpo..2%97.html
奇果: http://www.allkanpo..E%9C.html
夜夜堅: http://www.allkanpo..0%85.html
MaxMan: http://www.allkanpo..xMan.html
リドスプレー: http://www.allkanpo..PRAY.html
アフリカ超人: http://www.allkanpo..oren.html
徳国黒金: http://www.allkanpo..GOLD.html
蔵秘雄精: http://www.allkanpo..2%BE.html
夜狼神: http://www.allkanpo..shen.html
中華牛鞭: http://www.allkanpo..E%AD.html
VVK: http://www.allkanpo..kman.html
Wenickman: http://www.allkanpo..kman.html
モチベーター: http://www.allkanpo..ivat.html
力多精: http://www.allkanpo..2%BE.html
勃動力三體牛鞭: http://www.allkanpo..E%AD.html
蔵秘男宝: http://www.allkanpo..E%9D.html
中華牛鞭: http://www.allkanpo..E%AD.html
好漢哥: http://www.allkanpo..3%A5.html
魔根: http://www.allkanpo..D%89.html
999 神油: http://www.allkanpo..2%B9.html
黑色風暴: http://www.allkanpo..A%B4.html
男露888: http://www.allkanpo..2888.html
蔵八宝: http://www.allkanpo..E%9D.html
性霸2000: http://www.allkanpo..C%B8.html
頂点3000: http://www.allkanpo..3000.html
鹿茸腎宝: http://www.allkanpo..E%9D.html
男根増長素: http://www.allkanpo..gzzw.html
黒倍王: http://www.allkanpo..E%8B.html
蟻王: http://www.allkanpo..KING.html
アリ王: http://www.allkanpo..KING.html
Xing霸: http://www.allkanpo..C%B8.html
絶對高潮: http://www.allkanpo..D%AE.html
女性用バイアグラ: http://www.allkanpo..eige.html
D8 催情剤: http://www.allkanpo..geD8.html
FLY D5: http://www.allkanpo..0%B4.html
D5原液: http://www.allkanpo..%B45.html
蒼蝿水: http://www.allkanpo..0%B4.html
美人豹: http://www.allkanpo..1%B9.html
花之欲: http://www.allkanpo..C%B2.html
妻之友: http://www.allkanpo..F%8B.html
催情丹: http://www.allkanpo..ingj.html
牛黄清心丸: http://www.allkanpo..8%B8.html
悦可亭: http://www.allkanpo..A%AD.html
止血薬 カルバゾクロム錠: http://www.allkanpo..eyao.html
セフラジン: http://www.allkanpo..uzhi.html
消渇丸: http://www.allkanpo..8%B8.html
終極痩身: http://www.allkanpo..shen.html
日本秀身堂: http://www.allkanpo..E%B1.html
御秀堂: http://www.allkanpo..AB48.html
韓国痩身一号: http://www.allkanpo..%B75.html

蟻力神: http://www.allkanpo..5%9E.html
三便宝: http://www.allkanpo..E%9D.html
狼1号: http://www.allkanpo..F%B7.html
狼一号: http://www.allkanpo..F%B7.html
金博郎: http://www.allkanpo..Lang.html
五便宝: http://www.allkanpo..E%9D.html
男宝: http://www.allkanpo..E%9D.html
九鞭粒: http://www.allkanpo..anli.html
法国性奴: http://www.allkanpo..agou.html
新一粒神: http://www.allkanpo..5%9E.html
福源春: http://www.allkanpo..8%A5.html
魔鬼天使性欲粉: http://www.allkanpo..D%BF.html
VOV催情液: http://www.allkanpo..6%B2.html
VOV催情粉: http://www.allkanpo../VOV.html
壮天根: http://www.allkanpo..0%B9.html
三體牛鞭: http://www.allkanpo..E%AD.html
安宮牛黄丸: http://www.allkanpo..8%B8.html
碧生源減肥: http://www.allkanpo..yuan.html
西班牙蒼蝿水: http://www.allkanpo..%B42.html
三鞭粒: http://www.allkanpo..eige.html
2014-01-17, 01:15:04
anonymous from United States  
紅蜘蛛: http://紅蜘蛛.akanpo.net/
徳国黒金: http://徳国黒金.net/
男宝: http://男宝.net/
蔵秘男宝: http://蔵秘男宝.com/
蔵秘男宝: http://蔵秘男宝.net/
蟻力神通販: http://蟻力神通販.com/
中華牛鞭: http://中華牛鞭.net/
好漢哥: http://好漢哥.com/
三鞭粒: http://三鞭粒.com/
五便宝: http://五便宝.com/
夜夜堅: http://夜夜堅.com/
狼一号: http://狼一号.net/
狼1号: http://狼一号.net/
蔵秘雄精: http://蔵秘雄精.com/
蟻王: http://蟻王.com/
アリ王: http://蟻王.com/
壮三天: http://壮三天.com/
魔根: http://魔根.com/
三体牛鞭: http://三体牛鞭.net/
三體牛鞭: http://三体牛鞭.net/
VigRx: http://ビグレッ..ス.com/
ビグレックス: http://ビグレッ..ス.com/


紅蜘蛛: http://xn--19zl5rhf..anpo.net/
徳国黒金: http://xn--vcsp6r0y..bp4k.net/
男宝: http://xn--pbtr90d.net/
蔵秘男宝: http://xn--pbtr90dt..dpyo.com/
蔵秘男宝: http://xn--pbtr90dt..dpyo.net/
蟻力神通販: http://xn--tfry51gv..e33e.com/
中華牛鞭: http://xn--fiqx59fy..lwts.net/
好漢哥: http://xn--kwrt0i78w.com/
三鞭粒: http://xn--ehq774i08q.com/
五便宝: http://xn--dlq51ag0z.com/
夜夜堅: http://xn--fks3ya.com/
狼一号: http://xn--4gq48lvu4a.net/
狼1号: http://xn--4gq48lvu4a.net/
蔵秘雄精: http://xn--tmz82dyzk01s.com/
蟻王: http://xn--qbyx94b.com/
アリ王: http://xn--qbyx94b.com/
壮三天: http://xn--ehq78xdf.com/
魔根: http://xn--xxvo15i.com/
三体牛鞭: http://xn--ehq44ay2..5g5a.net/
三體牛鞭: http://xn--ehq44ay2..5g5a.net/
VigRx: http://xn--pckb2a1b0esh.com/
ビグレックス: http://xn--pckb2a1b0esh.com/


http://紅蜘蛛.ak..紅蜘蛛
http://徳国黒金.net/ 徳国黒金
http://男宝.net/ 男宝
http://蔵秘男宝.com/ 蔵秘男宝
http://蔵秘男宝.net/ 蔵秘男宝
http://蟻力神通販.com/ 蟻力神通販
http://中華牛鞭.net/ 中華牛鞭
http://好漢哥.com/ 好漢哥
http://三鞭粒.com/ 三鞭粒
http://五便宝.com/ 五便宝
http://夜夜堅.com/ 夜夜堅
http://狼一号.net/ 狼一号
http://狼一号.net/ 狼1号
http://蔵秘雄精.com/ 蔵秘雄精
http://蟻王.com/ 蟻王
http://蟻王.com/ アリ王
http://壮三天.com/ 壮三天
http://魔根.com/ 魔根
http://三体牛鞭.net/ 三体牛鞭
http://三体牛鞭.net/ 三體牛鞭
VigRx: http://ビグレッ..ス.com/
http://ビグレッ..ス.com/ ビグレックス

http://xn--19zl5rhf..紅蜘蛛
http://xn--vcsp6r0y7bp4k.net/ 徳国黒金
http://xn--pbtr90d.net/ 男宝
http://xn--pbtr90dtidpyo.com/ 蔵秘男宝
http://xn--pbtr90dtidpyo.net/ 蔵秘男宝
http://xn--tfry51gv..qe33e.com/ 蟻力神通販
http://xn--fiqx59fy7lwts.net/ 中華牛鞭
http://xn--kwrt0i78w.com/ 好漢哥
http://xn--ehq774i08q.com/ 三鞭粒
http://xn--dlq51ag0z.com/ 五便宝
http://xn--fks3ya.com/ 夜夜堅
http://xn--4gq48lvu4a.net/ 狼一号
http://xn--4gq48lvu4a.net/ 狼1号
http://xn--tmz82dyzk01s.com/ 蔵秘雄精
http://xn--qbyx94b.com/ 蟻王
http://xn--qbyx94b.com/ アリ王
http://xn--ehq78xdf.com/ 壮三天
http://xn--xxvo15i.com/ 魔根
http://xn--ehq44ay2..e5g5a.net/ 三体牛鞭
http://xn--ehq44ay2..e5g5a.net/ 三體牛鞭
VigRx: http://xn--pckb2a1b0esh.com/
http://xn--pckb2a1b0esh.com/ ビグレックス
2014-01-23, 15:41:46
image source  
rating
tsmzwjxr http://paydayloansu..pra.co.uk/ image source 1165 http://paydayloansusapra.com/ browse around this site 0299 http://paydayloansusaprc.com/ fast cash advance >:-[
2014-01-23, 20:54:31
official source  
rating
mjipnkw http://paydayloansu..pra.co.uk/ official source Asijd http://paydayloansusapra.com/ special info zNcMpj http://paydayloansusaprc.com/ payday loans 2799
You are on page 10 of 13, other pages: 1 2 3 7 8 9 [10] 11 12 13

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: