1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 10:53:23 -07:00

improve colors of similar

This commit is contained in:
Connor Olding 2018-02-20 11:55:45 +01:00
parent 2c0e5b6638
commit be00b8d30a

View File

@ -7,6 +7,7 @@ awk '
for (c in a)
if (a[c]==b[c]) i++
else break
print substr($0,1,i) "\033[7m" substr($0,i+1) "\033[0m"
#print substr($0,1,i) "\033[7m" substr($0,i+1) "\033[0m"
print "\033[31m" substr($0,1,i) "\033[0m" substr($0,i+1)
L=$0
}'