mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-11 04:29:19 +02:00
Add write-lowercase.ps1
This commit is contained in:
parent
2e5ee3f7eb
commit
392bfe11f8
@ -172,6 +172,7 @@ write-blue.ps1, writes the given text in a blue foreground color
|
|||||||
write-braille.ps1, writes the given text in Braille
|
write-braille.ps1, writes the given text in Braille
|
||||||
write-green.ps1, writes the given text in a green foreground color
|
write-green.ps1, writes the given text in a green foreground color
|
||||||
write-logbook.ps1, writes the given text to the logbook
|
write-logbook.ps1, writes the given text to the logbook
|
||||||
|
write-lowercase.ps1, writes the given text in lowercase letters
|
||||||
write-marquee.ps1, writes the given text as marquee
|
write-marquee.ps1, writes the given text as marquee
|
||||||
write-morse-code.ps1, writes the given text in Morse code
|
write-morse-code.ps1, writes the given text in Morse code
|
||||||
write-motd.ps1, writes the message of the day (MOTD)
|
write-motd.ps1, writes the message of the day (MOTD)
|
||||||
|
Can't render this file because it has a wrong number of fields in line 168.
|
@ -197,6 +197,7 @@ Mega Collection of PowerShell Scripts
|
|||||||
* [write-braille.ps1](Scripts/write-braille.ps1) - writes the given text in Braille
|
* [write-braille.ps1](Scripts/write-braille.ps1) - writes the given text in Braille
|
||||||
* [write-green.ps1](Scripts/write-green.ps1) - writes the given text in a green foreground color
|
* [write-green.ps1](Scripts/write-green.ps1) - writes the given text in a green foreground color
|
||||||
* [write-logbook.ps1](Scripts/write-logbook.ps1) - writes the given text to the logbook
|
* [write-logbook.ps1](Scripts/write-logbook.ps1) - writes the given text to the logbook
|
||||||
|
* [write-lowercase.ps1](Scripts/write-lowercase.ps1) - writes the given text in lowercase letters
|
||||||
* [write-marquee.ps1](Scripts/write-marquee.ps1) - writes the given text as marquee
|
* [write-marquee.ps1](Scripts/write-marquee.ps1) - writes the given text as marquee
|
||||||
* [write-morse-code.ps1](Scripts/write-morse-code.ps1) - writes the given text in Morse code
|
* [write-morse-code.ps1](Scripts/write-morse-code.ps1) - writes the given text in Morse code
|
||||||
* [write-motd.ps1](Scripts/write-motd.ps1) - writes the message of the day (MOTD)
|
* [write-motd.ps1](Scripts/write-motd.ps1) - writes the message of the day (MOTD)
|
||||||
|
13
Scripts/write-lowercase.ps1
Executable file
13
Scripts/write-lowercase.ps1
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/pwsh
|
||||||
|
<#
|
||||||
|
.SYNTAX write-lowercase.ps1 [<text>]
|
||||||
|
.DESCRIPTION writes the given text in lowercase letters
|
||||||
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
|
#>
|
||||||
|
|
||||||
|
param($Text = "")
|
||||||
|
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
|
||||||
|
|
||||||
|
write-output $Text.ToLower()
|
||||||
|
exit 0
|
@ -9,10 +9,5 @@
|
|||||||
param($Text = "")
|
param($Text = "")
|
||||||
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
|
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
|
||||||
|
|
||||||
try {
|
|
||||||
write-output $Text.ToUpper()
|
write-output $Text.ToUpper()
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user