Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

ConvertTo-MacOs9LineEnding

ConvertTo-MacOs9LineEnding

pscx.dll

Synopsis

PSCX Cmdlet: Converts the line endings in the specified file to Mac OS9 and earlier style line endings "\r".

Syntax

ConvertTo-MacOs9LineEnding [-Path] [-Destination] [-Force] [-NoClobber] [-Encoding] [<CommonParameters>]

ConvertTo-MacOs9LineEnding [-LiteralPath] [-Destination] [-Force] [-NoClobber] [-Encoding] [<CommonParameters>]

Detailed Description

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.

Parameters

-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.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Path <String[]>

Specifies the path to the file to process. Wildcard syntax is allowed.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

true

-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.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Overwrite any existing readonly file.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-NoClobber <SwitchParameter>

Specifies not to overwrite any existing file.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Encoding <StringEncodingParameter>

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

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

ConvertTo-WindowsLineEnding
ConvertTo-UnixLineEnding