I need to get everything between two words then put
that in a file renamed with the original filenameand "-body" and the end of it . file1-body
I keep on getting $file-body: Ambiguous error.
What am I doing wrong?
------------------
#!/bin/csh -f
foreach file ('cat ./filelist')
sed -n '/NET/,/TEST/p' $file > $file-body
end
----------------
Thanks,
olmos
that in a file renamed with the original filenameand "-body" and the end of it . file1-body
I keep on getting $file-body: Ambiguous error.
What am I doing wrong?
------------------
#!/bin/csh -f
foreach file ('cat ./filelist')
sed -n '/NET/,/TEST/p' $file > $file-body
end
----------------
Thanks,
olmos