02-21-2013
You can further fold the *.ear and *.war terms into a single predicate: -name '*.[EeWw][Aa][Rr]'
Same goes for the original, case-insensitive linux version.
Regards,
Alister
9 More Discussions You Might Find Interesting
1. Programming
Hi
I am very new to Linux programming,otherwise I have exposure to Linux. Was thinking about something like writing my own commands for Linux. Any ideas where to start, any useful links and what I need to know before I start with this.
Thanks :)
Sidhu (3 Replies)
Discussion started by: Amardeep
3 Replies
2. UNIX for Dummies Questions & Answers
How to convert this linux command to Unix AIX?
I have tried this command and work in CentOS:
tail --line=0 --retry -f --follow=name --max-unchanged-stats=1 logFile.log
But in AIX, the tail haven't "--retry" "--follow=name" option.
Thanks in advance. (1 Reply)
Discussion started by: chris13work
1 Replies
3. UNIX for Dummies Questions & Answers
Hello all
the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option
any help (6 Replies)
Discussion started by: islam.said
6 Replies
4. Shell Programming and Scripting
Hi,
Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt.
I tried torture.pl but it is not working after20 concurrent threads/users.
as it is very urgent for me..please suggest ur ideas asap.
thanks (5 Replies)
Discussion started by: Malleswari
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I was trying to install from source USB_ModeSwitch on my Mac. I have always had success with the basic ./configure, make, make install commands in terminal so don't know how, why or what.
The issue I came across is that the makefile.conf uses the -D flag while installing and on UNIX... (0 Replies)
Discussion started by: jprokos
0 Replies
6. Linux
Hi,
When i ran the command as sar in linux box. i got a output like as below
$ sar
Linux 2.6.18-274.3.1.el5 (scrbgcddkcph431) 06/29/2012
12:00:01 AM CPU %user %nice %system %iowait %steal %idle
12:10:01 AM all 8.78 0.00 26.11 ... (8 Replies)
Discussion started by: Mani_apr08
8 Replies
7. Fedora
I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies
8. Shell Programming and Scripting
Hello Everyone,
I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the remote servers where I am logging in.
#!/bin/ksh
#!/usr/bin/expect
touch... (1 Reply)
Discussion started by: rahul2662
1 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
LEARN ABOUT DEBIAN
path::dispatcher::rule::under
Path::Dispatcher::Rule::Under(3pm) User Contributed Perl Documentation Path::Dispatcher::Rule::Under(3pm)
NAME
Path::Dispatcher::Rule::Under - rules under a predicate
SYNOPSIS
my $ticket = Path::Dispatcher::Rule::Tokens->new(
tokens => [ 'ticket' ],
prefix => 1,
);
my $create = Path::Dispatcher::Rule::Tokens->new(
tokens => [ 'create' ],
block => sub { create_ticket() },
);
my $delete = Path::Dispatcher::Rule::Tokens->new(
tokens => [ 'delete', qr/^d+$/ ],
block => sub { delete_ticket(shift->pos(2)) },
);
my $rule = Path::Dispatcher::Rule::Under->new(
predicate => $ticket,
rules => [ $create, $delete ],
);
$rule->match("ticket create");
$rule->match("ticket delete 3");
DESCRIPTION
Rules of this class have two-phase matching: if the predicate is matched, then the contained rules are matched. The benefit of this is less
repetition of the predicate, both in terms of code and in matching it.
ATTRIBUTES
predicate
A rule (which must match prefixes) whose match determines whether the contained rules are considered. The leftover path of the predicate is
used as the path for the contained rules.
rules
A list of rules that will be try to be matched only if the predicate is matched.
perl v5.12.4 2011-08-30 Path::Dispatcher::Rule::Under(3pm)