Tag Info

New answers tagged


I think I understand what you are trying to accomplish: For each hit to the web site, which is logged by the web server: If the visit is "unique" (how do you define this??) log the entry and send an audible notification. The trick is how you define "unique". Is it by URL, by IP address, by cookie? Your approach with awk was arguably the right way to go, ...


To sort you can use a pipe also inside of an awk command, as in: awk '{ print ... | "sort ..." }' The syntax means that all respective lines of the data file will be passed to the same instance of sort. Of course you can also do that equivalently on shell level: awk '{ print ... }' | sort ... Or you can use GNU awk which has a couple sort functions ...

Top 50 recent answers are included