Can someone help out please with a linux command (been trying sed) to extract the src string from the HTML below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
" xml:lang="en" lang="en">
... a whole bunch of html including other img tags...
7.jpg" alt="" /></body>
I would like to pipe this HTML file into the command and have the command output just the src of the very last IMG tag in the file (/path/to/file/12345667.jp
g in this case), which I will assign to a bash variable for subsequent use.