improvement: radix to single-byte prefixes
This commit is contained in:
@@ -42,14 +42,14 @@ fi
|
||||
#
|
||||
# @argument $1: some string
|
||||
__radix() {
|
||||
echo "$1" | awk -F "" '{ print $1$2$3$4"/"$5$6$7$8"/"$0 }'
|
||||
echo "$1" | awk -F "" '{ print $1$2"/"$3$4"/"$0 }'
|
||||
}
|
||||
|
||||
# Radix transform strings (batch)
|
||||
#
|
||||
# Here, the input is read line-by-line from stdin.
|
||||
__radix_batch() {
|
||||
cat | awk -F "" '{ print $1$2$3$4"/"$5$6$7$8"/"$0 }'
|
||||
cat | awk -F "" '{ print $1$2"/"$3$4"/"$0 }'
|
||||
}
|
||||
|
||||
# Super wrapper to print json data from cache
|
||||
|
||||
Reference in New Issue
Block a user