37 reputation
7
bio website
location
age
visits member for 1 year, 3 months
seen Mar 18 at 3:43

Apr
23
awarded  Popular Question
Apr
21
awarded  Popular Question
Nov
7
comment What To Make Of Encoded URLs in Log Files
The sample URLs are not obfuscated. I merely replaced the clear text. The funny characters (encoded part of the URL) are real.
Nov
7
asked What To Make Of Encoded URLs in Log Files
Nov
7
accepted IPtables Rules to Block IP Range
Sep
25
comment Bash: Reverse DNS Lookup of Active IP Addresses
Thanks! I've made some modifications and now it's what I'm looking for: cat access.log | awk '{print $1}' | sort | uniq -c | sort -n | sed "s/^[ \t]*//" | tail -n10 | while read count ip ; do echo "$count " "$ip" "( $(dig +noall +answer -x $ip | awk '{ print $(NF) }') )"; done Appreciate your kind help!
Sep
25
accepted Bash: Reverse DNS Lookup of Active IP Addresses
Sep
24
comment Bash: Reverse DNS Lookup of Active IP Addresses
Thanks for the prompt response! However, this time I get only the output from dig and I lost the count. The desired output would be: <count> <IP address> <reverse DNS lookup>
Sep
24
awarded  Commentator
Sep
24
asked Bash: Reverse DNS Lookup of Active IP Addresses
May
13
comment Append line break to command output
@suspectus It works! Thanks!
May
13
accepted Append line break to command output
May
13
comment Append line break to command output
After adding the double quotes around the ` it works! Thanks!
May
13
comment Append line break to command output
Hmmm...when I tried this on my local machine, it works fine. But when used in the server, it says, "bash: /var/log/myserver.log: Permission denied". Adding sudo before echo didn't work either.
May
13
awarded  Supporter
May
13
comment Append line break to command output
I tried both, but they didn't work. Interestingly, the first one actually removes all line breaks from the result. Could it be due to the use of ` in the command? Thanks anyway.
May
13
awarded  Scholar
May
13
comment Append line break to command output
This worked like a charm. Thanks!
May
13
asked Append line break to command output
Apr
9
revised IPtables Rules to Block IP Range
added 232 characters in body