sed "s/\${version.number}/$version/" template.txt > readme.txt
Only double quotes do dollar-sign replacement. That also means single quotes don’t require the dollar sign to be escaped.
More Related Contents:
- Recursively rename files using find and sed
- How can I remove the first line of a text file using bash/sed script?
- Extract version number from a string
- find difference between two text files with one item per line [duplicate]
- sed substitution with Bash variables
- How can I do a recursive find/replace of a string with awk or sed?
- How to pass a variable containing slashes to sed
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- How can I declare and use Boolean variables in a shell script?
- Test for non-zero length string in Bash: [ -n “$var” ] or [ “$var” ]
- How to iterate over an array using indirect reference?
- How to simulate the environment cron executes a script with?
- Bash script – store stderr in a variable [duplicate]
- Wait for a process to finish
- Remove first N lines of a file in place in unix command line
- How to address error “bash: !d’: event not found” in Bash command substitution [duplicate]
- How to add to the end of lines containing a pattern with sed or awk?
- Delete all lines beginning with a # from a file
- Copy folder recursively, excluding some folders
- Why does sed not replace all occurrences?
- Insert newline (\n) using sed
- How to resolve symbolic links in a shell script
- How to remove double-quotes in jq output for parsing json files in bash?
- sed replace with variable with multiple lines [duplicate]
- How to find/replace and increment a matched number with sed/awk?
- Expand variables in sed
- Using sed to insert file content
- bash script order of execution
- How to insert a new line character after a fixed number of characters in a file
- How to delete rows from a csv file based on a list values from another file?