Hello,
from the gnu sed manual, I should be able to do this:
`\(REGEXP\)'
Groups the inner REGEXP as a whole, this is used to:
* Apply postfix operators, like `\(abcd\)*': this will search
for zero or more whole sequences of `abcd', while `abcd*'
... (3 Replies)
Hi there, I need to test that a variable ($VAR) matches a regex mask in BASH. I have the exact thing working in perl (below), but could somebody advise me how i would do the same in BASH ? do i need to use something like egrep ?
#!/bin/perl -w
my $VAR = "some value";
if ( $VAR =~... (4 Replies)
Why is only hello3 being printed? There must be some kind of syntax problem because the file list definitely includes all the file extensions line by line.
#!/bin/bash
find '/home/myuser/folder/' -name '*.c' -type f | while read F
do
if ] # if the file name ends in .txt.c
then
... (6 Replies)
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Hi,
I'm trying to validate if a string matches a regular expression, but it is not working. Am I missing something? Do I need to scape any of the characters?
if echo 'en-GB' | egrep '({1,8})(-{1,8})*' >/dev/null; then
echo Valid value
fi
Thanks in advance (6 Replies)
Hi ,
I am trying to extract contents of a file between specified time stamp. but it does not seem to work. i am trying to extract output of /var/adm/messages between 15:00:00 to 15:23:59 .
i have tried two regex the first one seems to kind of work. it displays some output. the second one is... (13 Replies)
I have a number of files that I pass through awk/gsub.
I believe to have found a working regex and on 'test bed' sites it matches, however within gsub it does not.
Examples:
Initial data:
/Volumes/Daniel/Public/Drop Box/_Hellsing_Ultimate_OVA_-_10_.mkv
gsub & regex:
gsub("\]+\]",""
... (4 Replies)
Hello to all,
The Regex below is supposed to match all strings except RR45. I've tested in regex101.com and it works, butwhen I try to use it with the perl command below I get the error shown.
Regex=(?<=^|RR45)(?!RR45).+?(?=RR45|$)
How to fix this? I'm using Cygwin.
$ echo... (9 Replies)
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
LEARN ABOUT HPUX
cvs-debi
CVS-DEBI(1) General Commands Manual CVS-DEBI(1)NAME
cvs-debi - install cvs-buildpackage/cvs-debuild generated package
SYNOPSIS
cvs-debi [options] [package ...]
DESCRIPTION
cvs-debi is run from the CVS working directory after cvs-buildpackage or cvs-debuild. It uses the cvs-buildpackage system to locate the
.changes file generated in that run. It then runs debpkg -i on every .deb archive listed in the .changes file to install them, assuming
that all of the .deb archives live in the same directory as the .changes file. Note that you probably don't want to run this program on a
.changes file relating to a different architecture after cross-compiling the package!
If a list of packages is given on the command line, then only those debs with names in this list of packages will be installed.
Note that unlike cvs-buildpackage, the only way to specify the source package name is with the -P option; you cannot simply have it as the
last command-line parameter.
Since installing a package requires root privileges, debi calls debpkg rather than dpkg directly. Thus debi will only be useful if it is
either being run as root or debpkg can be run as root. See debpkg(1) for more details.
OPTIONS
All current cvs-buildpackage options are silently accepted; however, only the ones listed below have any effect. For more details on all
of them, see the cvs-buildpackage(1) manpage.
-adebian-architecture, -tGNU-system-type
See dpkg-architecture(1) for a description of these options. They affect the search for the .changes file. They are provided to
mimic the behaviour of dpkg-buildpackage when determining the name of the .changes file.
-Mmodule
The name of the CVS module.
-Ppackage
The name of the package.
-Vversion
The version number of the package.
-Ttag The CVS tag to use for exporting sources.
-Rroot directory
Root of the original sources archive.
-Wwork directory
The full path name for the cvs-buildpackage working directory.
-xprefix
This option provides the CVS default module prefix.
--help, --version
Show help message and version information respectively.
SEE ALSO cvs-buildpackage(1), cvs-debc(1)cvs-debuild(1) and debi(1).
AUTHOR
cvs-buildpackage was written by Manoj Srivastava, and the current version of debi was written by Julian Gilbey <jdg@debian.org>. They have
been combined into this program by Julian Gilbey.
DEBIAN Debian Utilities CVS-DEBI(1)