Search Results

Search: Posts Made By: ampak
2,717
Posted By ampak
Finding if my IP address belongs in a Class C group
I need help with a tcl code. I have a variable "myIP" which reads IP address from socket. How do I use regex to find out if it belongs to a group for e.g., 50.65.75.240/28 or 50.65.75.128/25 etc.
2,506
Posted By ampak
Need help with TCL code to find IP address from a URL
Need help with a a tcl code. Need to find out the ip address from a URL if it is present to do some activity.

The URLs will be of the form
<domain>?a=12345&d=somestring1(Note: c not present)...
1,767
Posted By ampak
Thanks Hanson. Is it possible to do this in...
Thanks Hanson.

Is it possible to do this in tcl ? Need only ip address without the "c="

For eg,

set urlvar <one of the URLs mentioned earlier>

set ipout [regexp...
1,767
Posted By ampak
How to use regexp to find an ipaddress from a query string?
I need help with a regexp to find out the ip address which can possibly be present in a URL.

The URLs can be in any of the following form
<domain>?a=12345&d=somestring1...
1,551
Posted By ampak
Question on regexp in TCL
I need some help with regexp in tcl. The following code does work if the $urlvar ends in jpg,jpeg,png or gif. Eg, protocol(http/https)://testsite.com/images/image1.jpg

if { ![regexp -nocase...
1,525
Posted By ampak
Sample data 213.236.258.22 tx-cdn.ops.com...
Sample data

213.236.258.22 tx-cdn.ops.com - [26/Mar/2012:06:21:03 -0700] "GET /pub/ops/linux/1161/ops_11.61.1250_i386.deb HTTP/1.1" 200 11455274...
1,525
Posted By ampak
Need help with shell script using multiple awks
I have a command lline script that works perfectly.

cat <some_filename> | awk '$9 == 200' | awk '$10 == 10623720' | awk -F\" '{print $6}' | sort | uniq -c | sort -r

I want to put this in a...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 04:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy