Search
Translate / Traduci
-
Available even in U.S.A. Support Gioorgi Editorial Board
Facet
Gioorgi EverGreen
Tag Archives: regexp
Bash Regular expression replace (regexp)
You can easily use bash to search-and-replace on variables… f="/home/alice/myfile.md" $ echo ${f//.md/.pdf} /home/alice/myfile.pdf $ echo ${f//alicee/bob} /home/alice/myfile.md $ echo ${f////-} -home-alice-myfile.md
Posted in English Content, Knowledgebase, Unix
Tagged bash, regexp
Comments Off on Bash Regular expression replace (regexp)