9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have Below Input :-
X1=03 ### Hour
Y1=20160405 ## Date
Z1=3 ## I want to Back 3 Hour
Output
List=03 02 01
Y1=20160405
Input:-
X1=02 ### Hour
Y1=20160405 ## Date
Z1=4 ## I want to Back 4 Hour
Output:-
List=02 01 24 23
Y1=20160404 ### Date Will Change (13 Replies)
Discussion started by: asavaliya
13 Replies
2. Shell Programming and Scripting
Hi,
I want to write a small code in which script changes command line input to some form.
Example
script.sh a1 a2 a3 a4 .....
output should be "a1|a2|a3|....."
Number of inputs in command line can be any variable (2 Replies)
Discussion started by: Raza Ali
2 Replies
3. Solaris
After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks.
ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface
# ifconfig eg1000g0:2 plumb
ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface
# ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies
4. Shell Programming and Scripting
Sorry Guys for not being able to explain in one of my earlier post.
I am now putting my requirement with the input file and desired output file.
In the below input file -
Transaction code is at position 31:40.
Business code is from position 318:321
TSCM00000005837 ... (7 Replies)
Discussion started by: varunrbs
7 Replies
5. Shell Programming and Scripting
I have 2 Servers IP:
1)10.1.1.27
2)10.1.2.27
#more /etc/postfix/transport
Domain.com smtp:ServerIP
Now i want to change the smtp:ServerIP according to user interaction: (2 Replies)
Discussion started by: telnor
2 Replies
6. Shell Programming and Scripting
Dear...
I have a scrpit that contains multiple read command.... when I run the script I have to enter 3 variables so that I can get the output..
but, I dont want to put those 3 inputs manually every time... I want to make a shell that reads the 3 inputs from a file.
the script name is... (4 Replies)
Discussion started by: yahyaaa
4 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I have got two files.
File A with 50000 records and
File B with some 500 million records.
I need to extract the mapping data (common data) from both the files.
There should be definitely many ways :) though I have a way which is definitely not optimzed and takes a longer time... (2 Replies)
Discussion started by: matrixmadhan
2 Replies
8. Shell Programming and Scripting
I have a file (status.file) of the form:
valueA 3450
valueB -20
valueC -340
valueD 48
I am tailing a data.file, and need to search and modify a value
in status.file...the tail is:
tail -f data.file | awk '{ print $3, ($NF - $(NF-1)) }'
which will produce lines that look like this:
... (3 Replies)
Discussion started by: nortonloaf
3 Replies
9. UNIX for Advanced & Expert Users
Hi
I'm trying to work out the best method for creating a backup under SCO OpenServer. I would like to perform unattended backups to tape of various file systems, possibly using a script etc.
So far I've looked at the Backup Manager that comes with SCO and that cannot perform unattended... (2 Replies)
Discussion started by: synamics
2 Replies
ALTER TEXT SEARCH
CONFIGURATION(7) PostgreSQL 9.2.7 Documentation ALTER TEXT SEARCH CONFIGURATION(7)
NAME
ALTER_TEXT_SEARCH_CONFIGURATION - change the definition of a text search configuration
SYNOPSIS
ALTER TEXT SEARCH CONFIGURATION name
ADD MAPPING FOR token_type [, ... ] WITH dictionary_name [, ... ]
ALTER TEXT SEARCH CONFIGURATION name
ALTER MAPPING FOR token_type [, ... ] WITH dictionary_name [, ... ]
ALTER TEXT SEARCH CONFIGURATION name
ALTER MAPPING REPLACE old_dictionary WITH new_dictionary
ALTER TEXT SEARCH CONFIGURATION name
ALTER MAPPING FOR token_type [, ... ] REPLACE old_dictionary WITH new_dictionary
ALTER TEXT SEARCH CONFIGURATION name
DROP MAPPING [ IF EXISTS ] FOR token_type [, ... ]
ALTER TEXT SEARCH CONFIGURATION name RENAME TO new_name
ALTER TEXT SEARCH CONFIGURATION name OWNER TO new_owner
ALTER TEXT SEARCH CONFIGURATION name SET SCHEMA new_schema
DESCRIPTION
ALTER TEXT SEARCH CONFIGURATION changes the definition of a text search configuration. You can modify its mappings from token types to
dictionaries, or change the configuration's name or owner.
You must be the owner of the configuration to use ALTER TEXT SEARCH CONFIGURATION.
PARAMETERS
name
The name (optionally schema-qualified) of an existing text search configuration.
token_type
The name of a token type that is emitted by the configuration's parser.
dictionary_name
The name of a text search dictionary to be consulted for the specified token type(s). If multiple dictionaries are listed, they are
consulted in the specified order.
old_dictionary
The name of a text search dictionary to be replaced in the mapping.
new_dictionary
The name of a text search dictionary to be substituted for old_dictionary.
new_name
The new name of the text search configuration.
new_owner
The new owner of the text search configuration.
new_schema
The new schema for the text search configuration.
The ADD MAPPING FOR form installs a list of dictionaries to be consulted for the specified token type(s); it is an error if there is
already a mapping for any of the token types. The ALTER MAPPING FOR form does the same, but first removing any existing mapping for those
token types. The ALTER MAPPING REPLACE forms substitute new_dictionary for old_dictionary anywhere the latter appears. This is done for
only the specified token types when FOR appears, or for all mappings of the configuration when it doesn't. The DROP MAPPING form removes
all dictionaries for the specified token type(s), causing tokens of those types to be ignored by the text search configuration. It is an
error if there is no mapping for the token types, unless IF EXISTS appears.
EXAMPLES
The following example replaces the english dictionary with the swedish dictionary anywhere that english is used within my_config.
ALTER TEXT SEARCH CONFIGURATION my_config
ALTER MAPPING REPLACE english WITH swedish;
COMPATIBILITY
There is no ALTER TEXT SEARCH CONFIGURATION statement in the SQL standard.
SEE ALSO
CREATE TEXT SEARCH CONFIGURATION (CREATE_TEXT_SEARCH_CONFIGURATION(7)), DROP TEXT SEARCH CONFIGURATION (DROP_TEXT_SEARCH_CONFIGURATION(7))
PostgreSQL 9.2.7 2014-02-17 ALTER TEXT SEARCH CONFIGURATION(7)