In csh, I have a variable called $var
and I want to include it in a csh script as follows
#!/bin/csh
set var="directory"
sed 's/DIRECTORY_PATH/$var1234/' > output.txt
I want the sed statement to evaluate to 's/DIRECTORY_PATH/directory1234'
, but instead it just tries to a lookup a variable called var1234. What's the right way to do this?