DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
shell Is it possible to combine bash variable search and replace with substring
underline() { printf '%s %.*s ' "$1" ${#1} "${1//?/${2:--}}"; }
PREVIOUS
NEXT
Tagged:
#shell
#Is
#combine
#bash
#variable
#search
#replace
#substring
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit