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?
You should be able to get dos2unixfrom your Linux package manager.
dos2unix
Debian, sudo apt-get install dos2unix.
sudo apt-get install dos2unix
RH- , sudo yum install dos2unix.
sudo yum install dos2unix
'
dos2unix test.pl
, , Linux Windows.
, - , , , .
, , Linux ( /) Windows ( \).
/
\
- , UNIX.
Windows, Unix?
Source: https://habr.com/ru/post/1537453/More articles:Scroll vertically for HubSection content - windows-phoneCanonical way to load checksum in Dockerfile? - dockerCan development be canceled to get the source code from the .ipa file? - iosCustom font is not displayed when clicking on the selection menu (drop-down menu) - cssумножая строку на целое число, возвращает целые числа? - stringHow to configure a replica set using MongoDB - mongodbTwo functions with the same name in Matlab - matlabDrag and rename Bootstrap tree component - twitter-bootstrapfile length calculation does not work - cDecimal point on the numeric keypad on iphone in Phonegap / Cordova - jquery-mobileAll Articles