macos – Utilizing curl to obtain picture, and duplicate to the PNG to the clipboard

on

|

views

and

comments


I am utilizing curl and grep to get the URL of a picture, after that I might prefer to obtain the picture itself, and duplicate it to the clipboard immediately, somewhat than saving it to the disk briefly earlier than. I am puzzled that the output would not appear to work. It solely provides me “textual content” somewhat than the picture itself. This is the command I’ve thus far:

curl -s https://www.tradingview.com/x/4WuY06rl/ | grep -oE "src="https://apple.stackexchange.com/questions/454737/[^"]+'" | sed -E "s/src="([^"]+)'/1/" | xargs curl -s | pbcopy

If there’s a better resolution to this, please let me know. The command is constructed round the concept that the web site right here has solely ONE img tag.

Share this
Tags

Must-read

Torc Helps GO Virginia–Funded Effort to Align Autonomous Car Workforce Coaching Throughout the Commonwealth

BLACKSBURG, Va – March 10, 2026 – Torc, a pioneer in commercializing self-driving class 8 vans, as we speak introduced its participation in...

Union tries to grab management of works council at Tesla’s German manufacturing unit | Tesla

Europe’s largest commerce union is attempting to realize management of the works council at Elon Musk’s Tesla gigafactory close to Berlin, in an...

Nvidia and UK Wealth Fund to put money into British autonomous driving startup Oxa | Nvidia

Nvidia is investing in the British autonomous driving startup Oxa, alongside backing from the UK’s Nationwide Wealth Fund, in a lift to the...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here