#!/bin/sh # # non-breaking space # # Change multiple spaces to the HTML " " sequence. # # Brent Chivers 2021/Jun/29 # # Frequent use will be "sort IPList | uniq -c | ipnsl" 2020/Dec/29 # If there's an integer (not an IP) echo it through with a TAB and no NEWLINE. # (Output will be COUNTIP or COUNTIPHOSTNAME.) # Doesn't recognize intergers more than 7 digits. Could add recognizing numbers w/ commas. /bin/cat $* | /usr/bin/expand | /bin/sed 's/ / \ /g'