DEV Community

Discussion on: Analyzing the Attacks on my Website

Collapse
 
beginagain profile image
Todd Hogarth

You don't need to pipe the log to grep with cat since grep will take a file input as a second parameter.

grep "$i" /var/log/secure | ...

Thanks for the great write up.