Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Get-Content F5-LTM.psm1 -Raw) -split '\nFunction ' | Select-Object -Skip 1 | ForEach-Object {
- $FunctionName = [Regex]::Match($_, '^[^ {]*').Value
- "Function $($_.Trim())" -replace '\r\n',"`r" -replace '\t',' ' | Out-File -FilePath (Join-Path (Resolve-Path '~\Source\Repos\POSH-LTM-Rest\Public') "$FunctionName.ps1") -NoNewline -Encoding utf8
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement