Post Job Free
Sign in

.Net It Looking Pipe Unix Access Test Case Perl

Location:
United States
Posted:
October 10, 2012

Contact this candidate

Resume:

COMPGROUPS.NET Search Post Question Groups Stream About Register

apache log - pipe refering IP to nslookup for resume.htm

Tweet

i'd like to see who's looking at my resume. my apache log has the

refering IP as the first column. currently i cat my-access.log grep

resume.htm which gives me a list - can someone show me with

sed/awk/perl, etc. how to pipe each of the IPs to nslookup or host...

thanks!

0

Reply starman7 8/14/2003 1:24:51 AM

In article,

Mooky Mooksgill wrote:

> i'd like to see who's looking at my resume. my apache log has the

> refering IP as the first column. currently i cat my-access.log grep

> resume.htm which gives me a list - can someone show me with

> sed/awk/perl, etc. how to pipe each of the IPs to nslookup or host...

> thanks!

Just for fun, a "meta-programing" solution :

sed 's 0-9

/

cho "$(dig +short -x \1) \2"/' sh

--

Christophe Le Gal

0

Reply Christophe 8/14/2003 7:28:06 AM

Christophe Le Gal wrote in message news

> In article,

> Mooky Mooksgill wrote:

> > i'd like to see who's looking at my resume. my apache log has the

> > refering IP as the first column. currently i cat my-access.log grep

> > resume.htm which gives me a list - can someone show me with

> > sed/awk/perl, etc. how to pipe each of the IPs to nslookup or host...

> > thanks!

>

> Just for fun, a "meta-programing" solution :

>

> sed 's 0-9

/

cho "$(dig +short -x \1) \2"/' sh

thanks for those clues, fiddling around with it, i came up with this,

which seems to do what i wanted, however un-elegantly...

cat resume.log sed 's 0-9

/

cho nslookup -sil[ent]

\1/' sh > who.dat

anyone know why this works, or how to do it more gracefully

0

Reply starman7 8/17/2003 4:08:01 PM

comp.unix.shell 15265 articles. 15 followers.

2 Replies

122 Views

(page loaded in 0.104 seconds)

Similiar Articles:

Case insensitive searching in gvim 2 323

whereismelvin (5)

$PATH uses $CWD if :: is in there - - how come ! 1 21

jschenck

find: -exec: no terminating ";" or "+" 1 591

laredotornado

menu with sudo 4 17

Dave

How to run multiple commands in -exec of find command 2 609

linq936951 (10)

extract text from a unix flat file 0 27

jhd41

crontab, command substitution and bash 4 1

brendandetracey (55)

Calling/providing input for interactive script within script 3 1

gnirmal (1)

awk sed grep Question 6 14

hobbzilla

getting files in a specified area 3 9

apogeusistemas

Not able to send multiple attachements - Formatting issue 4 17

test

Double quotes in and out of command substitution 3 24

Spiros

ass teen ass big black ass tit ass mouth ass phat ass licking ass perfect asian ass ass traffic ass whipped 0 0

gilbertbutlerjt (1)

grep & awk help 18 3

suraj.hajare (20)

Code review: timeout in a shell script 5 45

Teo

7/13/2012 9:45:12 PM

Privacy Policy All Times Are GMT(UTC) powered by



Contact this candidate