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)