Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement : awk '!/^;/{print $1}' drop.lasso better than cat grep awk #5

Open
supersophie opened this issue Feb 15, 2018 · 1 comment

Comments

@supersophie
Copy link

Hi,

On line 49, save yourself two processes. Use this instead. You don't need the cat and grep. We can do this with just awk, e.g

awk '!/^;/{print $1}' $FILE

Ciao,Sophie

@supersophie
Copy link
Author

Final line equals:

# iterate through all known spamming hosts
for IP in $(  awk '!/^;/{print $1}' ); do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant