Bash Regular expression replace (regexp)


You can easily use bash to search-and-replace on variables…

$ echo ${f//.md/.pdf}

$ echo ${f//alicee/bob}

$ echo ${f////-}


This entry was posted in English Content, Knowledgebase, Unix and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.