ConvertTo-MacOs9LineEnding
Converts the line endings in the specified file to Mac OS9 and earlier style line endings "\r".
Descrizione
Converts the line endings in the specified file to Mac OS9 and earlier style line endings "\r". You can convert a single file to a new file name. Or you can convert multiple files and specify a destination directory. By default, this cmdlet will overwrite existing files unless you specify -NoClobber. If you want to force the overwrite of read only files use the -Force option.
Parametri
| Nome |
Descrizione e modalità d'uso |
| -LiteralPath |
-LiteralPath <String[]>
|
Specifies a path to the item. The value of -LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences.
|
| -Path |
-Path <String[]>
|
Specifies the path to the file to process. Wildcard syntax is allowed.
|
| -Destination |
-Destination <String>
|
Destination to write the converted file. If the destination is a directory, then the file is written to the directory using the same name.
|
| -Force |
-Force
|
Overwrite any existing readonly file.
|
| -NoClobber |
-NoClobber
|
Specifies not to overwrite any existing file.
|
| -Encoding |
-Encoding <EncodingParameter>
|
Encoding used to write the output file. By default the encoding of the input file is used. Valid values are: unicode, utf7, utf8, utf32, ascii and bigendianunicode
|