using sed to replace help

Hi,

i am following content in file

cat file

Install Installation-path variable

Now i need to replace Installation-path with some text to be provided as argument in csh script invocation

My question is , can i replace this by only using path
eg.

sed "s/path/$1" file

but it replaces only path, can i replace the whole word installation-path by any method.

-Sarbjit

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

---------- Post updated at 10:17 AM ---------- Previous update was at 10:13 AM ----------

I am wondering it replaces anything at all. Nevertheless:

$> cat infile2
tall Installation-path variable
$> sed "s/Installation-path/newtext/" infile2
tall newtext variable

I do not work with csh, maybe you'll have to do some adjustments to make it work in your script.