#!/bin/csh echo '**************************************************************************' echo ' script for adding refix to mosflm if you have it' echo ' in the file refix_all.for as built by Harry' echo '**************************************************************************' if (-e refix_all.for) then sed 's/SORTUP(/SORTUP2(/' refix_all.for > temp1 sed 's/SORTUP (/SORTUP2(/' temp1 > temp2 mv temp2 refix_all.for sed '/SUBROUTINE TOREFIX/,$'d mosflm_all_ip_inc.for > temp1 mv temp1 mosflm_all_ip_inc.for #cat torefix.f >> mosflm_all_ip_inc.for cat refix_all.for >> mosflm_all_ip_inc.for echo echo that seems to have worked... echo else echo echo Sorry. You do not have the required file. The whole REFIX source should echo be in a file called refix_all.for for this script to work. If you echo don't have the REFIX source and you would like to have it, you should get echo in touch with Andrew Leslie for a copy. echo endif