How to use dos2unix?

I am learning perl programming. I ran the perl script on the Windows platform, but I need to run it on the Linux platform, for example in Ubuntu. My script works fine on Windows, but not Linux. I am not familiar with the dos2unix tool. I am struggling on how to use it in my windows 7 and how to convert my winfile to unixfile. Suppose my perl script is test.pl and encoding inside. Now, how can I make this script work correctly on Linux using the dos2unix tool? Also, where should I unpack the dos2unix tool?

+5
source share
2 answers

You should be able to get dos2unixfrom your Linux package manager.

Debian, sudo apt-get install dos2unix.

RH- , sudo yum install dos2unix.

'

dos2unix test.pl

, , Linux Windows.

, - , , , .

, , Linux ( /) Windows ( \).

+15
+2

Source: https://habr.com/ru/post/1537453/


All Articles