Search
 
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
Name
2+5 =