2019-06-22 01:10:39 +02:00
|
|
|
#!/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() {
|
2020-03-31 23:51:00 +02:00
|
|
|
tr "[[:upper:]]" "[[:lower:]]" <<<"$1"
|
2019-06-22 01:10:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Converts a string to upper case.
|
|
|
|
toupper() {
|
2020-03-31 23:51:00 +02:00
|
|
|
tr "[[:lower:]]" "[[:upper:]]" <<<"$1"
|
2019-06-22 01:10:39 +02:00
|
|
|
}
|