summaryrefslogtreecommitdiff
path: root/xxd-a
blob: c22f1cf2f1a9cf5f18b0083d0dab931cf2aae9af (plain)
1
2
3
#!/bin/sh
# `xxd -a`, but besides 00s, it also folds other duplicates
xxd "$@" | awk -F: '{if(prev==$2){if(p)print "*";p=0}else {print;p=1;}}{prev=$2}'