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 REDHAT
createlang
CREATELANG(1) PostgreSQL Client Applications CREATELANG(1)
NAME
createlang - define a new PostgreSQL procedural language
SYNOPSIS
createlang [ connection-options... ] langname [ dbname ]
createlang [ connection-options... ] --list | -l dbname
DESCRIPTION
createlang is a utility for adding a new programming language to a PostgreSQL database. createlang can handle all the languages supplied
in the default PostgreSQL distribution, but not languages provided by other parties.
Although backend programming languages can be added directly using several SQL commands, it is recommended to use createlang because it
performs a number of checks and is much easier to use. See CREATE LANGUAGE [create_language(7)] for additional information.
OPTIONS
createlang accepts the following command-line arguments:
langname
Specifies the name of the procedural programming language to be defined.
[-d] dbname
[--dbname] dbname
Specifies to which database the language should be added. The default is to use the database with the same name as the current sys-
tem user.
-e
--echo Displays SQL commands as they are executed.
-l
--list Shows a list of already installed languages in the target database (which must be specified).
-L directory
Specifies the directory in which the language interpreter is to be found. The directory is normally found automatically; this option
is primarily for debugging purposes.
createlang also accepts the following command-line arguments for connection parameters:
-h host
--host host
Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for
the Unix domain socket.
-p port
--port port
Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections.
-U username
--username username
User name to connect as
-W
--password
Force password prompt.
ENVIRONMENT
PGDATABASE
PGHOST
PGPORT
PGUSER Default connection parameters.
DIAGNOSTICS
Most error messages are self-explanatory. If not, run createlang with the --echo option and see under the respective SQL command for
details. Check also under psql(1) for more possibilities.
NOTES
Use droplang(1) to remove a language.
createlang is a shell script that invokes psql several times. If you have things arranged so that a password prompt is required to connect,
you will be prompted for a password several times.
EXAMPLES
To install pltcl into the database template1:
$ createlang pltcl template1
SEE ALSO
droplang(1), CREATE LANGUAGE [create_language(7)]
Application 2002-11-22 CREATELANG(1)