[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including files

***  For details on how to be removed from this list visit the  ***
***    CCP4 home page http://www.dl.ac.uk/CCP/CCP4/main.html    ***

Dave Love writes:
 > If there is a bug with the `@' construct that you need to work round,
 > you can do fairly general things with `here documents' in Bourne shell
 > (/bin/sh).  A straightforward way to do the case in point is:
 > ccp4prg <<+
 > CARD    arguments
 > `cat cards.dat`
 > END
 > +

Doh! I knew there must be a way to do this.

BTW, it works great in csh and tcsh as well. However, it will fail if
you quote the end-of-file marker (+ in Dave's example) in any way.