diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-09-27 01:00:57 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-09-27 01:00:57 +0200 |
commit | 7cb10e40473705ccf838aee8918f77cdc59080f5 (patch) | |
tree | 83099bf3b19da490079daf9501582d071a514b60 | |
parent | ea3c2837b880e624d698c1c7687f227eb4da1078 (diff) | |
download | scripts-7cb10e40473705ccf838aee8918f77cdc59080f5.tar.gz |
xxd-a: xxd -a, but for more duplicates
mtime: 19 July 2013
-rwxr-xr-x | xxd-a | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}' |