How to compare the file name for "zip" or "ZIP" extension.
I can put one more || condition to check the upper case in the below:
if ]; then
Is there any better way to compare using regular expressions.
Thx in advance. (4 Replies)
Hi all,
I am trying to match a multi line string and return the matching string in one line. Here is the perl code that I wrote:
#!/usr/bin/perl
my $str='<title>My
title</title>';
if ($str =~ /(<title>)(+)(<\/title>)/ ){
print "$2\n";
}
It returns :
My
title
I want the... (3 Replies)
Hi,
I need and expression for a word like abc_xyz_ykklm
The expresion should indicate that the word starts with abc and end with ykklm but does not contain xyz string in the middle.
Example: abc_tmn_ykklm is ok and abc_xyz_ykklm is not Ok.
Please help.
Regards. (1 Reply)
Hi,
I am looking for a Perl regular expression to match the below pattern of a java script file.
var so = object.device.load('camera','value');
I want to grep out such lines present in the *.js files. The conditions are:
a) the line may start with blank space(s)
b) always the... (3 Replies)
Hello,
I am trying to use perl LWP module to read and get a specfic URL page. The issue is that the URL ends with the data and time and time is not consistent it changes all the time. if anyone could help me how to write a regular expressin that would work in the LWP::UserAgent get function to... (0 Replies)
Could you help me with this please. This regular expression seems to match for the wrong input
#!/usr/bin/perl
my $inputtext = "W1a$%XXX";
if($inputtext =~ m/+X+/)
{
print "matches\n";
}
The problem seems to be %. if inputtext is W1a$XXX, the regex doesnot match.... (5 Replies)
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hi ,
I have the below array
my @actionText = ("delivered to governor on 21/23/3345" , "deliver jllj" , "ram 2345/43");
When i am trying to grep the contents of array and if mathced substituting with the digitis or some date format from the element like below
my @action = grep { $_ =~... (7 Replies)
Hi,
temp="/usr=25,/usr/lib=12"
How to get only dir names with out values.
I tried like below but no use.
tmp=${temp##*,}
echo $tmp
o/p:
/usr/lib=12
expected o/p:
/usr /usr/lib ---> in array (13 Replies)
Discussion started by: munna_dude
13 Replies
LEARN ABOUT DEBIAN
qmhandle
Qmhandle(1) General Commands Manual Qmhandle(1)NAME
qmhandle - tool to manage the qmail message queue
SYNOPSIS
qmhandle [--help] [--version]
DESCRIPTION
qmHandle is a tool which can be used to manage the qmail message queue. It's written in Perl (so fully customizable) and has more features
than qmail-qread and qmail-qstat.
OPTIONS -a try to send queued messages now (qmail must be running)
-l list message queues
-L list local message queue
-R list remote message queue
-s show some statistics
-mN display message number N
-dN delete message number N
-fsender
delete message from sender
-f're delete message from senders matching regular expression re
-Stext delete all messages that have/contain text as Subject
-h're' delete all messages with headers matching regular expression re (case insensitive)
-b're' delete all messages with body matching regular expression re (case insensitive)
-H're' delete all messages with headers matching regular expression re (case sensitive)
-B're' delete all messages with body matching regular expression re (case sensitive)
-t're' flag messages with recipients in regular expression 're' for earlier retry (note: this lengthens the time message can stay in queue)
-D delete all messages in the queue (local and remote)
-V print program version
-c display colored output
-N list message numbers only
AUTHORS
Marcela Tiznado <mlt@debian.org>
Qmhandle(1)