feature: bash substring f(x) for textual input
This commit is contained in:
parent
603c686f48
commit
e5469f5aa8
@ -31,6 +31,13 @@ bold() {
|
|||||||
note() {
|
note() {
|
||||||
printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
|
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
|
# Browser interaction utilities
|
||||||
function browse() {
|
function browse() {
|
||||||
|
Loading…
Reference in New Issue
Block a user