mirror of
https://github.com/notwa/rc
synced 2024-11-14 14:09:03 -08:00
awk script to print a single value for each key
This commit is contained in:
parent
0fde647072
commit
3f7eaa11ec
1 changed files with 4 additions and 0 deletions
4
sh/sv
Executable file
4
sh/sv
Executable 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]}
|
||||||
|
'
|
Loading…
Reference in a new issue