9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a couple of Rescue Disks I was experimenting with and someone suggested that I use Knoppix instead. I have the newest version of it and it seems more like an Emergency O.S than anything else. The only useful tool I can find on it is Gparted. Do you have to add Emergency Applications to it? ... (5 Replies)
Discussion started by: theKbStockpiler
5 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
I have a Knoppix CD. I am able to boot Knoppix(Linux) from the CD.
How do I save a document that I created using OpenOffice(Writer) to either my harddrive on Windows or to a USB instead of the CD itself.
I am new to Knoppix and am not sure of the GUI. I tried mounting the USB... (2 Replies)
Discussion started by: AnilAnand
2 Replies
3. SuSE
Hi,
I want to learn linux but I don't want to install on my hard drive. I came to know about knoppix that could give me the answer. But If I download the same (approx 700 MB) from free download site and copy it to CD, Will it work ? please help. (2 Replies)
Discussion started by: sanjay1979
2 Replies
4. Ubuntu
Umm How can I get the Knoppix can be booted off my hard drive instead of the CD. I dont like using the CD. :confused: (4 Replies)
Discussion started by: shade11
4 Replies
5. Filesystems, Disks and Memory
Sorry if this post is in the wrong location. I'm trying to pull some files off of an old Dell box. I've not been able to get it to boot off of the HD, so I tried to use Knoppix. At boot time; I get the following error:
Loading spec packet failed, trying to wing it
isolinux 2.04: failed to... (3 Replies)
Discussion started by: ECBROWN
3 Replies
6. UNIX for Advanced & Expert Users
I hv boot my crashed RH server with knoppix linux cd , the server can connect internet now , I want to copy some files from my server to internet , but now I only found the below device path , could suggest how can I see my original path (eg. /home/ , /usr , / tmp etc, because I hv some important... (1 Reply)
Discussion started by: ust
1 Replies
7. Debian
hi all again!!
just a stupide question: how do you find the version of a knoppix? like the /etc/mandrake-release on mdk machines??
I have no idea of where to search..
Jason (5 Replies)
Discussion started by: penguin-friend
5 Replies
8. UNIX for Dummies Questions & Answers
I have downloaded KNOPIIX and burned it on a CD, it niether boots from CD nor could I open the file, it seems the extension is .iso, would you mind sending me your comment,please.
Thank you very much (2 Replies)
Discussion started by: amir
2 Replies
9. UNIX for Dummies Questions & Answers
i need help running Knoppix on my comp (which is windows). I have the cd with the iso on it and it works on my moms computer but not mine :( this is what it says to do
How do I run KNOPPIX?
In order to start the CD, first adjust the boot list in the BIOS Setup of your computer to boot from CD... (4 Replies)
Discussion started by: smokinchili21
4 Replies
PCRESAMPLE(3) Library Functions Manual PCRESAMPLE(3)
NAME
PCRE - Perl-compatible regular expressions
PCRE SAMPLE PROGRAM
A simple, complete demonstration program, to get you started with using PCRE, is supplied in the file pcredemo.c in the PCRE distribution.
The program compiles the regular expression that is its first argument, and matches it against the subject string in its second argument.
No PCRE options are set, and default character tables are used. If matching succeeds, the program outputs the portion of the subject that
matched, together with the contents of any captured substrings.
If the -g option is given on the command line, the program then goes on to check for further matches of the same regular expression in the
same subject string. The logic is a little bit tricky because of the possibility of matching an empty string. Comments in the code explain
what is going on.
If PCRE is installed in the standard include and library directories for your system, you should be able to compile the demonstration pro-
gram using this command:
gcc -o pcredemo pcredemo.c -lpcre
If PCRE is installed elsewhere, you may need to add additional options to the command line. For example, on a Unix-like system that has
PCRE installed in /usr/local, you can compile the demonstration program using a command like this:
gcc -o pcredemo -I/usr/local/include pcredemo.c
-L/usr/local/lib -lpcre
Once you have compiled the demonstration program, you can run simple tests like this:
./pcredemo 'cat|dog' 'the cat sat on the mat'
./pcredemo -g 'cat|dog' 'the dog sat on the cat'
Note that there is a much more comprehensive test program, called pcretest, which supports many more facilities for testing regular expres-
sions and the PCRE library. The pcredemo program is provided as a simple coding example.
On some operating systems (e.g. Solaris), when PCRE is not installed in the standard library directory, you may get an error like this when
you try to run pcredemo:
ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory
This is caused by the way shared library support works on those systems. You need to add
-R/usr/local/lib
(for example) to the compile command to get round this problem.
AUTHOR
Philip Hazel
University Computing Service
Cambridge CB2 3QH, England.
REVISION
Last updated: 23 January 2008
Copyright (c) 1997-2008 University of Cambridge.
PCRESAMPLE(3)