Written by Sean Behan on Sun Sep 15th 2013
egrep -or "(http(s)?://){1}[^'\"]+" path/to/directory

You can further reduce to just return the images by piping again.

grep -r src views/ | egrep -o "(mailto|ftp|http(s)?://){1}[^'\"]+"

The -r flag is for a recursive directory scan.


Tagged with..
#grep #unix #commands #searching

Just finishing up brewing up some fresh ground comments...