SHARE
TWEET

Untitled

a guest Apr 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top