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

Nvidia CEO reveals new ‘reasoning’ AI tech for self-driving vehicles | Nvidia

The billionaire boss of the chipmaker Nvidia, Jensen Huang, has unveiled new AI know-how that he says will assist self-driving vehicles assume like...

Tesla publishes analyst forecasts suggesting gross sales set to fall | Tesla

Tesla has taken the weird step of publishing gross sales forecasts that recommend 2025 deliveries might be decrease than anticipated and future years’...

5 tech tendencies we’ll be watching in 2026 | Expertise

Hi there, and welcome to TechScape. I’m your host, Blake Montgomery, wishing you a cheerful New Yr’s Eve full of cheer, champagne and...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here