3 if [ "$#" -ne 1 ] ||
[ "$1" = "--help" ] ||
[ ! -f "$1" ]; then
4 echo "This script fixes replies ids in QEMU replies files."
6 echo " Usage: $0 path/to/qemu.replies"
11 'BEGIN {last=0; pattern="libvirt-[0-9]+"}
13 if (match($0, "libvirt-1[^0-9]")) {
16 if (match($0, pattern)) {
18 sub(pattern, str, $0);