dos2unix all files in current directory using find -exec

$find . -exec dos2unix {} \

Sometimes we copy some source code from windows to Linux and try to compile them. The result is often
very unexpected and likely to have no clue whats the wrong! Most of the time it is due to nothing but the file format difference in Linux and windows.

dos2unix comes from almost all Linux distributions. it converts an windows file to Linux format.

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.