script help

ms devicerandom at gmail.com
Mon Aug 23 09:25:40 UTC 2010


On 23/08/10 10:16, Oliver Marshall wrote:
> Hi chaps,
>
> Can someone help me with a script/grep syntax please? I have a string within an HTML file downloaded by wget.
>
> The string is "Antivirus Pattern - Win vx.yyy.z"
>
> I need to find that string and then pass "xyyyz" to the console pass to the next command in the chain (note the lack of v and the ".").
>
> Any ideas how I can do this ?
>

Maybe not the answer you expect, but I'd do it with Python, if I were in 
you. :)

m.




More information about the ubuntu-users mailing list