Skip to content

Instantly share code, notes, and snippets.

@erm3nda
Created May 8, 2022 08:11
Show Gist options
  • Save erm3nda/073c0cd45367a2fc352847f0e8f207bc to your computer and use it in GitHub Desktop.
Save erm3nda/073c0cd45367a2fc352847f0e8f207bc to your computer and use it in GitHub Desktop.
Gives you accounting for unique visitors to given log file.
#!/bin/bash
# gives you accounting for unique visitors
cat $1 | cut -d" " -f1 | sort | uniq | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment