From 7cb10e40473705ccf838aee8918f77cdc59080f5 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 27 Sep 2014 01:00:57 +0200 Subject: xxd-a: xxd -a, but for more duplicates mtime: 19 July 2013 --- xxd-a | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 xxd-a diff --git a/xxd-a b/xxd-a new file mode 100755 index 0000000..c22f1cf --- /dev/null +++ b/xxd-a @@ -0,0 +1,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}' -- cgit v1.2.1