feature: bash substring f(x) for textual input

This commit is contained in:
MorganGeek 2020-07-14 15:18:57 +02:00
parent 603c686f48
commit e5469f5aa8

View File

@ -31,6 +31,13 @@ bold() {
note() {
printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
}
function substring() {
local _length=${#1}
local _start=${2}
local _end=${3}
echo ${1:_start:_length-_end}
}
# Browser interaction utilities
function browse() {