Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. (Get-Content F5-LTM.psm1 -Raw) -split '\nFunction ' | Select-Object -Skip 1 | ForEach-Object {
  2. $FunctionName = [Regex]::Match($_, '^[^ {]*').Value
  3. "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
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement