Skip to content

Commit

Permalink
Update binary expression viewer script to elide first byte ID value n…
Browse files Browse the repository at this point in the history
…ewly added.
  • Loading branch information
jimmymathews committed Sep 25, 2023
1 parent a9b2fc3 commit b7b48f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/ondemand/scripts/read-expression-dump-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ if [[ "$1" == "--help" || "$1" == "" ]]; then
exit
fi

xxd -c 8 -g 0 -b $1 | grep -oE ' [01]+ ' | grep -oE '[01]+' | sed 's/0/ /g'
if ! command -v ggrep &> /dev/null
then
ggrep=grep
else
ggrep=ggrep
fi

xxd -c 16 -g 0 -b $1 | $ggrep -oP '(?<=[01]{64})[01]+' | grep -oE '[01]+' | sed 's/0/ /g'

0 comments on commit b7b48f9

Please sign in to comment.