On 13Apr2011 16:11, Bob Goodwin <bobgood...@wildblue.net> wrote:
| On 13/04/11 15:47, Dave Ihnat wrote:
| > [ grep | sed approach ... ]
| 
|         [bobg@box9 ~]$ grep "Actual Usage Download" /home/bobg/foo | sed
|         -e "s/^.*value=\"//" -e "s/\" .*$//"
|         12667
| 
|         Aha, that works. It's so much easier when you can find someone
|         who knows how!
| 
|         I said I can muddle through from there, that was the hard part.

Never forget that sed can do what grep does, so (untested, one line):

  sed -n '/Actual Usage Download/s/.*value="\([^"]*".*/\1/p' < /home/bobg/foo

Cheers,
-- 
Cameron Simpson <c...@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

          "Neomort" : Brain-dead human, kept alive for medical purposes.
"Medicine Lecturer" : Brain-dead human, kept alive for medical purposes.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to