Sponsored Content
Top Forums Shell Programming and Scripting How to do equivalent of /(regexp){0}/ ? Post 302544302 by Vi-Curious on Wednesday 3rd of August 2011 11:52:46 AM
Old 08-03-2011
That's what I get for not reading the entire perlre doc. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

RegExp question

Hi guys, does anyone know how to test for a regular expression - i want to include it in a script to make sure the variable is a regexp cheers (3 Replies)
Discussion started by: penfold
3 Replies

2. UNIX for Advanced & Expert Users

regexp

Hi guys, does anyone know how to test for a regular expression - i want to include it in a script to make sure the variable is a regexp cheers (1 Reply)
Discussion started by: penfold
1 Replies

3. Shell Programming and Scripting

regexp assistance

i have a list of text a b c d e My desired output is 'a','b','c','d','e' any advise? My file was actually in excel format, i copied out the column into notepad. I am not sure if the \n exists in between. (2 Replies)
Discussion started by: new2ss
2 Replies

4. Shell Programming and Scripting

regexp help

I'd like to know if there is a catchall line for renaming the following patterns: s01e03 -> 01x03 s4e9 -> 04x09 s10e08 ->10x08 and possibly even: 318 -> 03x18 1002 ->10x02 if its the first 3 or first digit number in the string. thanks! (0 Replies)
Discussion started by: TinCanFury
0 Replies

5. Shell Programming and Scripting

Help with regexp

Hi there! I would like to know how to find and replace all numbers in a *.html file and make them bold. Any help will be appreciated! :) (7 Replies)
Discussion started by: agasamapetilon
7 Replies

6. UNIX for Dummies Questions & Answers

print the line immediately after a regexp; but regexp is a sentence

Good Day, Im new to scripting especially awk and sed. I just would like to ask help from you guys about a sed command that prints the line immediately after a regexp, but not the line containing the regexp. sed -n '/regexp/{n;p;}' filename What if my regexp is 3 word or a sentence. Im... (3 Replies)
Discussion started by: ownins
3 Replies

7. Shell Programming and Scripting

matching regexp

Hi, maybe it is stupid question, but is it possible to match expression like this ? : ... // ... ( there is "//" somewhere on the line and on the end of the line there ISN'T "*/" ) I've tried something like : (in SED) sed 's/\/\/' but I need "*/" not to be on the end of the line ...... (2 Replies)
Discussion started by: kolage
2 Replies

8. Shell Programming and Scripting

Regexp

I would like to extract "1333 Fairlane" given the below text. The word "Building:" is always present. The wording between Building and the beginning of the address can be almost anything. It appears the the hyphen is there most of the time. Campus: Fairlane Business Park Building:... (9 Replies)
Discussion started by: bbaker@copesan.
9 Replies

9. Shell Programming and Scripting

Gawk and regexp

Hello, This is a problem I've worked on a while and can't figure out. There is a file.txt ..some stuff.. ] ] ..some stuff.. The Awk program is trying to extract the year portion of the birth and death ("98: and "2nd C.") using the below technique #!/bin/awk @include... (5 Replies)
Discussion started by: Mid Ocean
5 Replies

10. What is on Your Mind?

A Regexp You Can Use Everywhere

¯\_(ツ)_/¯ bakunin (0 Replies)
Discussion started by: bakunin
0 Replies
dhelp_parse(8)							Debian Linux manual						    dhelp_parse(8)

NAME
dhelp_parse - Debian online help parser SYNOPSIS
dhelp_parse [ -r | -i | -a doc-base_file | -d doc-base_file ] DESCRIPTION
This program is used by package developers to register the documents included in a package. In most cases it is called by install-docs (see doc-base package), which in turn is called from the postinst and prerm scripts of a Debian package. An index of the registered documents is written in the directory /usr/share/doc/HTML OPTIONS
-h,--help Displays the help page. -a Adds the documentation found in the given doc-base files to the dhelp database. -d Deletes the documentation found in the given doc-base files from the dhelp database. -i Does an incremental update of the documents index for all documentation added with the -a switch after the last index update. -r Ignored, kept for compatibility. PACKAGE DEVELOPERS
You should usually rely on install-docs to do the work for you, but if for some reason you want to use dhelp_parse directly (not recom- mended!), you have to call it like this: postinst if [ -x /usr/sbin/dhelp_parse ]; then dhelp_parse -a /var/lib/doc-base/documents/foo fi prerm if [ -x /usr/sbin/dhelp_parse ]; then dhelp_parse -d /var/lib/doc-base/documents/foo fi Note that /var/lib/doc-base/documents/foo has to be a valid doc-base file (see doc-base documentation). SEE ALSO
dhelp(1), install-docs(8) AUTHOR
This package was written by Esteban Manchado Velazquez (zoso@debian.org). Debian 29 May 2008 dhelp_parse(8)
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy