Convert karakter ENTER windows ke Linux menggunakan vi

  1. Buka file dengan mode binary

vi test.h -b

  1. Lalu, replace karakter chr13 dengan karakter kosong:

:1,$s/^M//g

Note: To input the ^M character, press Ctrl-v , and then press Enter or return.

atau:
dos2unix nama_file.txt
dos2unix *.*

Posted on Tuesday, 11 October, 2011, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: