Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    bdc and some fun stuff

    hello, newbie here. i am using a program called bdc antivirus to remove viruses. it cannot get into archives and remove stuff in them on win partitions. it can however create a logfile of what worked and what failed. is there a way to use grep to grab filenames that occur before the words "update failed" and then <find> to find the location and rm to remove them? a parser of types?

  2. #2
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Hi, jwmw1023.

    Yes, grep will probably work. You will likely get more responses if you post a short sample of the text that you have, and then a sample of what you wish the output to be.

    When posting text, select the text and click the # to put code tags around it for easy reading, like this:
     The 7 most recent daily directories:
     8461 /backup/xandros/drl/2006-12-23
     7823 /backup/xandros/drl/2006-12-22
    26847 /backup/xandros/drl/2006-12-21
     9703 /backup/xandros/drl/2006-12-20
     9358 /backup/xandros/drl/2006-12-19
     7689 /backup/xandros/drl/2006-12-18
     5646 /backup/xandros/drl/2006-12-17
    ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts