forked from dfinke/Tiny-PowerShell-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhowler.ps1
More file actions
33 lines (26 loc) · 683 Bytes
/
howler.ps1
File metadata and controls
33 lines (26 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<#
Author: Doug Finke
Email: finked@hotmail.com
Blog: https://dfinke.github.io/
Twitter: https://twitter.com/dfinke
GitHub: https://github.com/dfinke
YouTube: https://www.youtube.com/dougfinke
PowerShell Meetup: https://www.meetup.com/NycPowershellMeetup/
LinkedIn: https://www.linkedin.com/in/douglasfinke/
#>
param(
$targetInput,
$outFile
)
if ( Test-Path $targetInput ) {
$data = Get-Content -Raw $targetInput
}
elseif ($targetInput -is [string]) {
$data = $targetInput
}
if ($outFile) {
$data.ToUpper() | Set-Content $outFile -Encoding ascii
}
else {
$data.ToUpper()
}