From 935f0416330744e0e0dd7a5db5b7704682c242d0 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Melucci Date: Thu, 5 Dec 2024 12:00:40 +0100 Subject: [PATCH] Added sorting to id list tool --- scripts/list-components-ids.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/list-components-ids.sh b/scripts/list-components-ids.sh index 005908e5..b6d4fa10 100755 --- a/scripts/list-components-ids.sh +++ b/scripts/list-components-ids.sh @@ -1,6 +1,6 @@ #!/bin/bash -ids=$(find . -name "*.proto" -exec grep -ho 'option (common\.ecs_component_id) = [0-9]\+;' {} + | sed -E 's/.*= ([0-9]+);/\1/') +ids=$(find . -name "*.proto" -exec grep -ho 'option (common\.ecs_component_id) = [0-9]\+;' {} + | sed -E 's/.*= ([0-9]+);/\1/' | sort -n) count=$(echo "$ids" | wc -l | xargs)