summaryrefslogtreecommitdiff
path: root/scripts/diff-dump-tree.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 03:52:46 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 14:27:40 -0700
commit37a7aff4df234151f7e68ac4180b5c88a5e02bcf (patch)
tree4b5df5e0594ac84c5c3b59a7e7344a34b09c0046 /scripts/diff-dump-tree.sh
parent79cb12dde9352331c15724b7d0892fd4ce5ea342 (diff)
scripts/diff-dump-tree.sh: Post-process our output to remove thousands-separators
Diffstat (limited to 'scripts/diff-dump-tree.sh')
-rwxr-xr-xscripts/diff-dump-tree.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/diff-dump-tree.sh b/scripts/diff-dump-tree.sh
index 42a3ec0..60ab4d3 100755
--- a/scripts/diff-dump-tree.sh
+++ b/scripts/diff-dump-tree.sh
@@ -13,5 +13,11 @@ set -e
make
)
diff -u \
- <(../btrfs-progs/btrfs inspect dump-tree --noscan --csum-items ../scratch/new.img | sed -e 's/ UNKNOWN.0 / UNTYPED /g' -e 's/\b18446744073709551615\b/-1/g') \
- <(go run ./cmd/btrfs-rec/ inspect dump-trees --pv=../scratch/new.img)
+ <(../btrfs-progs/btrfs inspect dump-tree --noscan --csum-items ../scratch/new.img |
+ sed -e 's/ UNKNOWN.0 / UNTYPED /g' \
+ -e 's/\b18446744073709551615\b/-1/g' \
+ ) \
+ <(go run ./cmd/btrfs-rec/ inspect dump-trees --pv=../scratch/new.img |
+ sed -E \
+ -e 's/([0-9]),/\1/g' \
+ )