Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Use awk—a text processor—in a Bash script on a Debian VPS—script:
#!/bin/bash\ntail -n 100 /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c > req.log
On Linode run:
./req.sh
—expect IP counts Tracks hosting traffic

Back to All Tips