Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Trim {
- param(
- [Parameter(ValueFromPipeline=$true)]
- [object[]] $Val
- )
- process {
- $r = $_
- if ($_ -is [string]) {
- $r = $r.Trim()
- }
- Write-Output $r
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement