123456789101112131415161718192021 |
- #!/bin/sh
- if [ ! $# -eq 4 ]; then
- echo 'usage: changecnt op cnt old.cnt new.cnt'
- echo 'example: changecnt Iop_DivF64 100 dump.cnt load.cnt'
- exit 1
- fi
- op=$1
- vl=$2
- dt=$3
- lt=$4
- sed -e "s/[0-9]* Iop_$op\$/$vl Iop_$op/" <$dt >$lt
- if cmp $dt $lt; then
- echo "nothing changed"
- fi
- # --- last line ---
|