From 7283be718ea35c5c4844077fd6fa10813c7aa3b9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Fri, 6 Oct 2023 23:20:38 -0400 Subject: [PATCH] Allow other character after number in label (new frame ID) --- fgen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgen.sh b/fgen.sh index 6e66b49..f50e000 100755 --- a/fgen.sh +++ b/fgen.sh @@ -58,7 +58,7 @@ function get_label() # Arg1: line function get_frame_id() { - frame=$(echo "${1}" | grep -e "label:[0-9]\+," | ${SED} "s/.*label:\([0-9]\+\),.*/\1/g") + frame=$(echo "${1}" | grep -e "label:[0-9]\+" | ${SED} "s/.*label:\([0-9]\+\).*,geometry.*/\1/g") echo "${frame}" } -- 2.20.1