The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-25-2008
tuathan tuathan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 10
Sed command over multiple lines in csh??

hi i have a long sed command in a csh script that won't fit on 1 line.
how do i break it up correctly over multiple lines?

this doesn't seem to work in csh:

sed -e s/template/$IP.$NN/ \
-e s/NRG/6/ \
-e s/inputf/$IS.$NN/ \
-e s/SHIFT/10.0/ <template.egsinp > $IP.$NN.inp

i get:

sed: can't read : No such file or directory
./script1.sh: line 48: -e: command not found


many thanks for your help