Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN {
- RS="[\n,]"
- regex = "^#[0-9a-fA-F]{8}$"
- }
- $0 ~ regex { a[substr($1,0,7)] }
- END {
- PROCINFO["sorted_in"] = "@ind_str_asc"
- for (b in a) {
- printf "\"%s\",\n", b
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement