/ Published in: Other
Expand |
Embed | Plain Text
awk -F"|" '$1!=p { if(p"")print out; sep=""; p = $1; out= p"#"} {out = out sep $2; sep = "%"} END{if(p"")print out}'
You need to login to post a comment.
awk -F"|" '$1!=p { if(p"")print out; sep=""; p = $1; out= p"#"} {out = out sep $2; sep = "%"} END{if(p"")print out}'
You need to login to post a comment.