I want to grep a link from an external file
egrep -o -m1 '(https)[^'\"]+.mp3' example.txt
When I run grep, it detect the last .mp3 as end of output while I just need it end after first occurrence. How can I tell grep to stop after finding the first pattern?
My desired output:
I just want to extract any string starting with
https and ending with