mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 01:30:58 +01:00
19 lines
526 B
Bash
19 lines
526 B
Bash
#!/usr/bin/env bash
|
|
# -----------------------------------------------------------------------------
|
|
# bat-extras | Copyright (C) 2019 eth-p | MIT License
|
|
#
|
|
# Repository: https://github.com/eth-p/bat-extras
|
|
# Issues: https://github.com/eth-p/bat-extras/issues
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Converts a string to lower case.
|
|
tolower() {
|
|
tr "[[:upper:]]" "[[:lower:]]" <<< "$1"
|
|
}
|
|
|
|
# Converts a string to upper case.
|
|
toupper() {
|
|
tr "[[:lower:]]" "[[:upper:]]" <<< "$1"
|
|
}
|
|
|