Sponsored Content
Full Discussion: Help with url filtering
Top Forums Shell Programming and Scripting Help with url filtering Post 302567189 by r4v3n on Sunday 23rd of October 2011 12:56:30 AM
Old 10-23-2011
Hi ahamed,

Thanks for the reply. This works, but only partially.

If i use this code on this set of URLs:

Code:
http://google.com/dogs/1.exe
http://google.com/cats/2.exe
http://google.com/apples/3.exe
http://rediff.jp/sample.zip
http://yahoo.com/1.exe

I should be getting this:

Code:
http://google.com/
http://rediff.jp/sample.zip
http://yahoo.com/1.exe

But instead I get this:

Code:
http://google.com/apples/
http://rediff.jp/sample.zip
http://yahoo.com/1.exe

Also, can you explain your code if you can please?

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

2. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

3. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

4. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

5. Shell Programming and Scripting

Please help me to do some filtering

I have to grep a pattern. scenario is like :- Suppose "/etc/sec/one" is a string, i need to check if this string contains "one" using any utility something like if /etc/sec/one | grep ; then Thanks in advance Renjesh Raju (3 Replies)
Discussion started by: Renjesh
3 Replies

6. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

7. AIX

Need help with filtering

Hi!! I have a bit of a task here and filtering/scripting not my strongest. I have to collect info of approx 1100 hdiskpower.so i have appended all the hdisk into a text file and i need it to run the command lscfg -vl to confirm if the drive is symmetrix. here's what i have so far at... (3 Replies)
Discussion started by: vpundit
3 Replies

8. Shell Programming and Scripting

Filtering

Hi I am interested in DNS resolving a set of sites and each time the output is different- $ host www.yahoo.com www.yahoo.com is an alias for fd-fp3.wg1.b.yahoo.com. fd-fp3.wg1.b.yahoo.com is an alias for ds-fp3.wg1.b.yahoo.com. ds-fp3.wg1.b.yahoo.com is an alias for... (1 Reply)
Discussion started by: jamie_123
1 Replies

9. Shell Programming and Scripting

Need help on filtering

Hi experts, I have a file image.csv as below: COMPUTERNAME,23/07/2013,22/07/2013,21/07/2013,20/07/2013,19/07/2013,18/07/2013,17/07/2013 AED03852180,3,3,3,3,3,3,3 AED03852181,3,3,3,3,3,3,1 AED09020382,3,0,3,0,3,3,3 AED09020383,1,3,3,3,2,1,3 AED09020386,3,3,0,3,3,0,3 ... (4 Replies)
Discussion started by: zaq1xsw2
4 Replies

10. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies
eiskaltdcpp-daemon(1)					      General Commands Manual					     eiskaltdcpp-daemon(1)

NAME
eiskaltdcpp-daemon - simple daemon controllable via XMLRPC or JSONRPC SYNOPSIS
eiskaltdcpp-daemon -d eiskaltdcpp-daemon <Key> DESCRIPTION
EiskaltDC++ is a cross-platform program that uses the Direct Connect and ADC protocol. It is compatible with other DC clients, such as the original DC from Neomodus, DC++ and derivatives. EiskaltDC++ also interoperates with all common DC hub software. COMMAND LINE OPTIONS
A summary of options is included below. -d,--daemon" Run program as daemon -v,--verbose" Verbose mode -D,--debug" Debug mode -P <port>,--port=<port>" Set port for XMLRPC or JSONRPC (default: 3121) -L <ip>,--ip=<ip>" Set IP address for XMLRPC or JSONRPC (default: 127.0.0.1) -p file,--pidfile=<file>" Write daemon process ID to <file> -c dir,--confdir=<dir>" Store config in <dir> -l <dir>,--localdir=<dir>" Store local data (cache, temp files) in <dir> (defaults is equal confdir) -S <file>,--rpclog=<file>" Write xmlrpc log to <file> (default: /tmp/eiskaltdcpp-daemon.xmlrpc.log) -U <uripath>,--uripath=<uripath>" Set UriPath for xmlrpc abyss server to <uripath> (default: /eiskaltdcpp) -h, --help Display help and exit -V, --version Show version information and exit FILES
~/.config/eiskaltdc++/ or $XDG_CONFIG_HOME/eiskaltdc++/ Directory with user configuration files DOCUMENTATION
Detail documentation about available XMLRPC and JSONRPC methods can be found in our wiki: http://code.google.com/p/eiskaltdc/wiki/XMLRPC http://code.google.com/p/eiskaltdc/wiki/JSONRPC AUTHOR
This program was written by EiskaltDC++ developers team (see file AUTHORS). EiskaltDC++ homepage: http://code.google.com/p/eiskaltdc/ BUG REPORTS
If you find a bug in EiskaltDC++ please report it here: http://code.google.com/p/eiskaltdc/issues/list This manual page was written by Boris Pek <tehnick-8@mail.ru> for the Debian project (and may be used by others). 19 Feb 2012 eiskaltdcpp-daemon(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy