< Back

Insert-PSISEQuotes

Mon Jan 13, 2020 6:14 am

NAME Insert-PSISEQuotes



SYNOPSIS

Insert quotes at the start and end of every line.





SYNTAX

Insert-PSISEQuotes [-Array <SwitchParameter>] [-Trim <SwitchParameter>] [<CommonParameters>]



Insert-PSISEQuotes [-Variable <SwitchParameter>] [-Trim <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Insert double quotes at the start and end of every line in the current file open in Powershell ISE.





PARAMETERS

-Array [<SwitchParameter>]

Create an array of the lines.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Trim [<SwitchParameter>]

Trim the start and end of each line.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Variable [<SwitchParameter>]

Create a variable assignment of an array.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Insert-PSISEQuotes -Array



This command will convert the text in the current PowerShell ISE file to an array by enclosing each line in double

quotes, adding a comma at the end of each line and inclosing the text in parenthesses.







-------------------------- Example 2 --------------------------



Insert-PSISEQuotes -Variable



This command will convert the text in the current PowerShell ISE file to an array and add a variable assignment.









RELATED LINKS