mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 07:54:50 +02:00
Corrected a few typos that caught my eye
parent
2377f3409c
commit
408773d3d6
@ -2,7 +2,7 @@ The EOL (End Of Line) character in DOS is '\r\n'
|
|||||||
|
|
||||||
The EOL (End Of Line) character in UNIX is '\n'
|
The EOL (End Of Line) character in UNIX is '\n'
|
||||||
|
|
||||||
Editing UNIX files on Windows changes the EOL fron UNIX to DOS, which might make the unix build tools not working. Also this make file comparison difficult. Use the following steps to batch convert files from DOS to UNIX EOL:
|
Editing UNIX files on Windows changes the EOL from UNIX to DOS, which might make the UNIX build tools not working. Also this make file comparison difficult. Use the following steps to batch convert files from DOS to UNIX EOL:
|
||||||
|
|
||||||
Using PowerShell
|
Using PowerShell
|
||||||
```powershell
|
```powershell
|
||||||
@ -13,18 +13,18 @@ or
|
|||||||
|
|
||||||
* Download _**dos2unix.exe**_ program from [http://sourceforge.net/projects/dos2unix/?source=typ_redirect](http://sourceforge.net/projects/dos2unix/?source=typ_redirect)
|
* Download _**dos2unix.exe**_ program from [http://sourceforge.net/projects/dos2unix/?source=typ_redirect](http://sourceforge.net/projects/dos2unix/?source=typ_redirect)
|
||||||
* Uncompress the compressed file (lets say, dos2unix-7.3-win32.zip)
|
* Uncompress the compressed file (lets say, dos2unix-7.3-win32.zip)
|
||||||
* Put the bin directory of the uncompressed file (that has dos2unix.exe and other prorgrams) in system path
|
* Put the bin directory of the uncompressed file (that has dos2unix.exe and other programs) in system path
|
||||||
* Open a command shell and go to the directory where you want to convert files and run
|
* Open a command shell and go to the directory where you want to convert files and run
|
||||||
|
|
||||||
|
|
||||||
_// to covert all file_
|
_// to convert all files_
|
||||||
|
|
||||||
`for /R %G in (*.*) do dos2unix "%G"`
|
`for /R %G in (*.*) do dos2unix "%G"`
|
||||||
|
|
||||||
_// to covert all .h files_
|
_// to convert all .h files_
|
||||||
|
|
||||||
`for /R %G in (*.h) do dos2unix "%G"`
|
`for /R %G in (*.h) do dos2unix "%G"`
|
||||||
|
|
||||||
_// to covert all .c file_
|
_// to convert all .c file_
|
||||||
|
|
||||||
`for /R %G in (*.c) do dos2unix "%G"`
|
`for /R %G in (*.c) do dos2unix "%G"`
|
Loading…
x
Reference in New Issue
Block a user