You don’t need nested quotes. Also, try changing the delimeter:
sed -i "s@$name@$input@g" ~/input.script
Related Contents:
- awk or sed extract each number of column alone
- sed substitution with Bash variables
- How can I do a recursive find/replace of a string with awk or sed?
- Bash tool to get nth line from a file
- How to merge every two lines into one from the command line?
- How to pass a variable containing slashes to sed
- sed search and replace strings containing / [duplicate]
- Recursively rename files using find and sed
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- How can I remove the first line of a text file using bash/sed script?
- 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?
- Remove Unicode characters from textfiles – sed , other Bash/shell methods
- How to replace an entire line in a text file by line number
- Using sed to mass rename files
- Use sed to replace all backslashes with forward slashes
- Delete all lines beginning with a # from a file
- Insert newline (\n) using sed
- Why does sed not replace all occurrences?
- How to remove double-quotes in jq output for parsing json files in bash?
- How do I escape slashes and double and single quotes in sed?
- Expand variables in sed
- How to use a bash script variable with sed [duplicate]
- sed multiline delete with pattern
- How to grep for case insensitive string in a file?
- Scripts for computing the average of a list of numbers in a data file
- How to match a single quote in sed
- Escaping forward slashes in sed command [duplicate]
- How do I split a string on a delimiter in Bash?
- How do I use floating-point arithmetic in bash?
- How to check if a variable is set in Bash
- How do you run multiple programs in parallel from a bash script?
- How can I check if a directory exists in a Bash shell script?
- Delete all but the most recent X files in bash
- How to pipe input to a Bash while loop and preserve variables after loop ends
- How to check the exit status using an ‘if’ statement
- Quick-and-dirty way to ensure only one instance of a shell script is running at a time
- Simple logical operators in Bash
- How to represent multiple conditions in a shell if statement?
- Value too great for base (error token is “09”)
- How to insert a text at the beginning of a file?
- Should aliases go in .bashrc or .bash_profile? [duplicate]
- In what order should I send signals to gracefully shutdown processes?
- Select random lines from a file
- How to remove last n characters from a string in Bash?
- What is your single most favorite command-line trick using Bash? [closed]
- Assign string containing null-character (\0) to a variable in Bash
- How to run ‘cd’ in shell script and stay there after script finishes?
- Padding characters in printf