10-10-2017
Hi Scott
thanks for prompt reply.
However I am specifically looking for regex as the same code may be executed in unix shell or other languages.
Thanks
Nitin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Any idea to identify bunch of files( gz format) in which having match PATTERN wanted and print out those files ? :)
Regards, (14 Replies)
Discussion started by: cedrichiu
14 Replies
2. Shell Programming and Scripting
hello
I want to create a folder under all partitions that are : /hostname1 /hostname2.....
how to exclude /hostname (i.e start directly with /hostname1)
thank you (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
3. Shell Programming and Scripting
hi,
is it possible to find the number of occurences of a pattern between two paranthesis.
for e.g
i have a file as below.
>>{
>>hi
>>GoodMorning
>>how are you?
>>}
>>is it good,
>>tell me yes, if it is good
In the above file, its clear the occurence of word "Good"... (17 Replies)
Discussion started by: divak
17 Replies
4. UNIX for Dummies Questions & Answers
First of all, please have mercy on me. I am not a noob to programming, but I am about as noob as you can get with regex. That being said, I have a problem.
I've got a string that looks something like this:
Publication - Bob M. Jones, Tony X. Stark, and Fred D. Man, \"Really Awesome Article... (1 Reply)
Discussion started by: egill
1 Replies
5. Shell Programming and Scripting
Hello,
Splitting a sentence using the full-stop/question-mark/exclamation is a common device. Whereas the question-mark / exclamation do not pose too much of a problem; the full-stop as a sentence delimiter raises certain issues because of its varied use:
just to name a few.
Standard parsers... (9 Replies)
Discussion started by: gimley
9 Replies
6. Shell Programming and Scripting
I am interested in finding a regex to find a word in second position on a line. The word in question is या
I tried the following PERL EXPRESSION but it did not work:
] या
or
^\W या
But both gave Null results
I am giving below a Sample file:
देना या सौंपना=delegate
तह जमना या... (8 Replies)
Discussion started by: gimley
8 Replies
7. Shell Programming and Scripting
The sample file:
dept1: user1,user2,user3
dept2: user4,user5,user6
dept3: user7,user8,user9
I want to match by '/^dept2.*/' but don't want to have substring 'dept2:' in output. How to compose such regex? (8 Replies)
Discussion started by: urello
8 Replies
8. Shell Programming and Scripting
Guys -
Need your ideas on a section of code to finish something up. To make a long story short, I'm parsing a print output file that goes to pre-printed forms. I'm intercepting it, parsing it, formatting it, cutting it up into individual pages, grabbing the text I want in zones, building an... (3 Replies)
Discussion started by: ampsys
3 Replies
9. Shell Programming and Scripting
Hello,
I have a dictionary which I am building for the Open Source Community. The data structure is as under
HEADWORD=PARTOFSPEECH=ENGLISH MEANING
as shown in the example below
अ=m=Prefix signifying negation.
अँहँ=ind=Interjection expressing disapprobation.
अं=int=An interjection... (2 Replies)
Discussion started by: gimley
2 Replies
10. Shell Programming and Scripting
I am working on Sindhi: a perso-Arabic script and since it shares the Unicode-block with over 400 other languages, quite often the database contains characters which are not wanted: illegal characters.
I have identified the character set of Sindhi which is given below:
For clarity's sake, each... (8 Replies)
Discussion started by: gimley
8 Replies
LEARN ABOUT DEBIAN
cfshow
cfengine(8) System Manager's Manual cfengine(8)
NAME
cfshow - Dump cfengine databases
SYNOPSIS
/usr/sbin/cfshow [options]
DESCRIPTION
cfengine is a language based system specifically designed for testing and configuring unix-like systems attached to a TCP/IP network.
cfshow is a tool for showing the contents of the internal databases used by cfengine in its operation. Many users will not care about these
internal details, while cfengine manages the system transparently. More advanced users might desire a simple way to dump the contents of
these databases to text, for reporting purposes. HTML and XML versions of the output are provided for easy integration with reporting.
EXAMPLES
cfshow --locks cfshow --last-seen cfshow --checksum cfshow --active cfshow --audit cfshow --classes cfshow --regex
These show the named databases.
OPTIONS
Here are all of the options supported:
--help (-h) --debug (-d) --verbose (-v) --locks (-l) --last-seen
(-s) --performance (-p) --checksum (-c) --classes (-C) --filename (-f) --regex
(-r) --active (-a) --version (-V) --html (-H) --xml (-X) --purge
(-P) --audit (-A)
FILES
cfshow reads cfengine internal information that is normally stored in the Work Directory /var/cfengine.
AUTHOR
Mark Burgess, Oslo University College
INFORMATION
http://www.cfengine.org
HiOslo Maintenance Commands cfengine(8)