diff options
-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}' |
index : scripts | ||
Random scripts in Bash, Python, ... | Peter Wu |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | xxd-a | 3 |
@@ -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}' |