The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
12 views

Need to add URL patters to include in JMeter for Specific URL Substring

I need to Record Only URLS having jobs/csuser__csuser__eam2__search in the Entire network request. Please Let me know how can I fulfill the same with the URL Patterns to include Option of Jmeter in ...
-5
votes
1answer
43 views

Using pattern matching to reduce IP Spoofing [duplicate]

The IP Spoofing is becoming a major concern these days.I was wondering whether we could use pattern matching,like comparing the hop count of the packets coming or the TTL(Time To Live) field of the IP ...
0
votes
1answer
99 views

Lighttpd, regex in conf, path including regex match

The background : - Lighttpd 1.4.28 - Debian 6.0.7 i686 Several developers are using this web server, and each of them has his own virtual host named after "username.mysite.tld". These hosts are ...
0
votes
1answer
2k views

RewriteCond not matching on my IP when matching on %{REMOTE_ADDR} [duplicate]

I want a mod_rewrite rule not to be executed when traffic is hitting the web-server from internal network. The web server is an apache 2.2 The following RewriteCond is meant to guard the rewrite rule. ...
2
votes
1answer
246 views

htaccess email regex

I am trying to write a patter in such a way that this link : http://www.mysite.com/link/go/emailadress@gmail.com is interpreted like this : ...
2
votes
2answers
130 views

Display nth instance of grepped pattern

So here's my problem. I have an issue with a .csv file (Current.csv) in that there are commas randomly place throughout the data, so awk-ing the file doesn't give me constant column numbers for a ...
0
votes
1answer
553 views

match 2 numbers in extensions at asterisks dialplan

is there a simple way to match something like this: exten => _+380XXXXXXXXX,1,NoOp(hint that) exten => _0XXXXXXXXX,1,NoOp(hint that) this two extensions matches same number with or without ...
0
votes
2answers
427 views

How to find .h,.c and .cc files under current directory in linux?

find . -name "*.[hc]|*.cc" The above doesn't work,why? UPDATE How do I find these 3 kinds of files with a single pattern?
1
vote
2answers
329 views

finding a group of string common in two files

I have used diff command in past.I faced a situation to which I did not had a clue here are some text strings (which can be stored in a file) CONFIG_XEN=y CONFIG_XEN_PVHVM=y ...
1
vote
3answers
2k views

How to delete everything except .svn directories?

I have quite complex directory tree. There are many subdirectories, in those subdirectories beside other files and directories are ".svn" directories. Now, under linux I want to delete all files and ...
1
vote
1answer
758 views

makefile shell pattern expansion: how to?

I have found an interesting "feature" of make DIR_INPUT=/test test: # testing date (it should be yesterday) test ! -z "${DATE}" ls -lad ${DIR_INPUT}/{a,c} but it seems to ...
1
vote
4answers
1k views

How to do a text match in bash

I'm trying to find a nice way of checking some text in order to set a variable. For instance to perform the logic: 'if the version string is 1.x then set a flag'. One way of doing this is: ...
3
votes
4answers
841 views

How can I specify a shell pattern that excludes certain files?

For instance, I want to remove all the files in a directory except for the .tar file from whence they came. I could do something like: find . -maxdepth 0 | grep -v '.tar$' | xargs rm -f but is ...