I have a input text like below:
10779: (255,255, 0,255) #FFFF00 yellow 338: (255,238,125,255) #FFEE00 srgba(255,238,125,1) 180: (238,221, 0,255) #EEDD00 srgba(238,221,0,1) ....
I wish the output is
255,255,0,255 255,238,125,255 238,211,0,255
How to extract this data from the input using gawk/awk? I've tried this:
gawk 'BEGIN {FS=\"[:,()]\"};{print $3,$4,$5,$6}'
but this gives me space between the data, e.g. 255 255 0 255