How to convert image pixels to HEX color codes in

2020-05-06 16:56发布

问题:

How do I keep only the highlighted part?

enter image description here

enter image description here

回答1:

Run it through awk to print the 3rd field on every line where the line number is greater than 1:

awk 'NR>1{print $3}' YourFile
#574E3E
#2E67FD
#40A254