1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 01:53:22 -07:00

awk script to print a single value for each key

This commit is contained in:
Connor Olding 2014-02-23 14:06:54 -08:00
parent 0fde647072
commit 3f7eaa11ec

4
sh/sv Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
awk "-F${1:- }" '
NF>1{f[$1]=substr($0,length($1)+1+length(FS))}END{for(k in f)print k FS f[k]}
'