<div class="gmail_quote">On Wed, Aug 10, 2011 at 2:42 PM, Patton Echols <span dir="ltr"><<a href="mailto:p.echols@comcast.net">p.echols@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 08/10/2011 09:47 AM, Hal Burgiss wrote:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
See if this gets close to extracting the image names ...<br>
<br>
grep SRC *html | sed -r 's/SRC="([^"]+)"/\1/ig' | whatever_script.sh<br>
<br>
<br>
</blockquote>
<br></div></div>
Thanks Hal,<br>
<br>
my script starts with "for i in *jpg" and then works each file individually.  So I tried that line without the pipe to whatever_script.sh, hoping for a list of files to be output to the terminal.  That seemed to output the string of tags but without the double quotes around the image names.  Is that what it should have done?<br>

<br></blockquote><div><br></div><div>That was what I was getting at, yes, the list of image filenames.</div><div><br></div><div>If you want just file names, you might try: </div><div><br></div><div> grep -H SRC *hmtl | sed 's/:.*//' |sort|uniq </div>
<div><br></div><div>or something along those lines. (Completely untested)</div></div><div><br></div>-- <br>Hal<br>