#!/bin/sh

FILE1=mnch.lib.orig
FILE2=mnch.lib
NEWSTDEV=15.0

echo
echo "Usage: mnch_phi"
echo
echo "       Edits $FILE1 in cwd to change the Phi SD of"
echo "       28.0 to $NEWSTDEV. Result is in $FILE2."
echo

cp $FILE1 $FILE2

sed -e "s;7.9     7.9    28.0    ;7.9     7.9    $NEWSTDEV    ;" \
    $FILE2 > file.sed

if [ $? -eq 0 ] ; then 
  mv file.sed $FILE2
  echo 'SUCCESSFULLY FINISHED.'
else
  echo 'ERROR: FILE NOT CHANGED!'
fi
echo
