#!/usr/bin/ksh # # change pathnames in igmt_helper_scripts and tcl code # # intended for redhat and SUSE linux systems with ksh # in the path /usr/bin # use \/ in the sed line for the slash /, this example changes every # occurence of /bin/ksh into /usr/bin/ksh # Change into the directory of the igmt distribution and execute # script, but... # Back-up first! # This is quick and dirty # for file in igmt_helper_* *.tcl do cp $file $file.tmp cat $file.tmp | sed 's/\/bin\/ksh/\/usr\/bin\/ksh/g' > $file rm $file.tmp done