#!/bin/sh awk -F ' *: *' ' /^#/ { print } $1 ~ "palette" { p = 1; next } p && /^ +/ { gsub(/ /, "", $1); print $1 "=" $2 } ' $1