You don’t need nested quotes. Also, try changing the delimeter:
sed -i "s@$name@$input@g" ~/input.script
More Related Contents:
- How can I manipulate text in bash? [closed]
- 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 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
- Delete all lines beginning with a # from a file
- How do I escape slashes and double and single quotes in sed?
- How to use a bash script variable with sed [duplicate]
- Escaping forward slashes in sed command [duplicate]
- Convert line endings [duplicate]
- Using sed to insert file content
- Getting “sed error – illegal byte sequence” (in bash) [duplicate]
- Extract version number from a string
- how to delete the duplicate lines in file except the first matched line
- Grep output with multiple Colors?
- Using SED with wildcard
- How to insert a new line character after a fixed number of characters in a file
- escaping newlines in sed replacement string
- How to replace paired square brackets with other syntax with sed?
- using bash (sed/awk) to extract rows AND columns in CSV files?
- How to delete rows from a csv file based on a list values from another file?
- Utility to extract dates from filenames in Bash?
- How to grep for case insensitive string in a file?