simple pipe question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jose Fragoso
Date: Wednesday, July 29, 2009 - 4:00 am

Hi,

I know this is not the right place to ask. Sorry in advance.

I would like to delete some addresses from the spamd db
using a pipe-like structure.

Suppose that I want to remove all white IP addressses that
start with 189.25. I could use

spamdb | grep "^WHITE|189\.25\." | awk -F \| '{print $2}'

Then I would run 'spamdb -d' for every address that is
displayed, manually.

Could I somehow pipe the output of above command directly
to spamdb?

Thanks in advance.

Regards,

Jose

--
How Strong is Your Score?
Click here to see yours for $0!
By FreeCreditReport.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
simple pipe question, Jose Fragoso, (Wed Jul 29, 4:00 am)
Re: simple pipe question, Евгений Юнак, (Wed Jul 29, 4:29 am)
Re: simple pipe question, Darrin Chandler, (Wed Jul 29, 5:55 am)