10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have been extracting a row, based on multiple key word from a xls/csv file, by using the following command. I have to implement the same for multiple xls/csv files, therefore please help me to do the same.
awk '
{ tbp=0
if ($0 ~ keyword1 && k1 == 0) { tbp=1; k1++ }
if ($0 ~ keyword2... (2 Replies)
Discussion started by: dineshkumarsrk
2 Replies
2. Programming
Hello, could anybody explain how the ps command works? I know something about the proc file system. But I'm still not sure about how it exactly works. Like ps without any option will print out the current user's processes, but it never displays my web browsers such as firefox or my LibreOffice... (3 Replies)
Discussion started by: freedombird9
3 Replies
3. Shell Programming and Scripting
I need to run a command n (n >= 100) times and the command running may take about 30 seconds. Can anyone help me with the shell script to achieve this? Thanks in advance. (5 Replies)
Discussion started by: zwei2011
5 Replies
4. Shell Programming and Scripting
I have file which contains around 5000 lines.
The lines are fixed legth but having no delimiter.Each line line contains nearly 3000 characters.
I want to delete the lines
a> if it starts with 1 and if 576th postion is a digit i,e 0-9
or
b> if it starts with 0 or 9(i,e header and footer)
... (4 Replies)
Discussion started by: millan
4 Replies
5. Shell Programming and Scripting
Hi,
I have a file a.txt having no delimiter.
I want to exclude the line which contains 435th character as 1 or 2 and redirect the rest of the lines to another file b.
Can you pls suggest how to do this in one liner awk.
Following is just one line of the input file a:-
120110116 ... (10 Replies)
Discussion started by: millan
10 Replies
6. Shell Programming and Scripting
hi
i have a file like
1,"A","B"
2,"C","D"
1,"E","F"
3,"G","H"
in output i need like
3,"G","H"
1,"E","F"
2,"C","D"
1,"A","B" (12 Replies)
Discussion started by: angel12345
12 Replies
7. Shell Programming and Scripting
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies
8. Shell Programming and Scripting
Hi all, i'm quite new in the UNIX world. So maybe i'm going to ask simple questions but they are unsolvable for me...
I'm trying to implement the 'more' function or kinda of that, for improving my knowledges. But I encountered some problems that i hope u will help me to solve.
The code i... (0 Replies)
Discussion started by: Cellofan
0 Replies
9. Shell Programming and Scripting
Hi all,
could any of you please help me on my problem..
we are doing FTP (one report out put) from one server to another server through unix shell script program.
Due to the network issues, some times FTP process is hanging.
So we planned to modify the existing program with the following... (2 Replies)
Discussion started by: kishore_jasthi
2 Replies
10. UNIX for Advanced & Expert Users
how can i use a rlogin with out entered a password,
someone tell me about configure the next files
/.rhosts
/etc/hosts.equiv and /etc/hosts
but i not sure about that, or there are not enough
could you tell me how to do that? (3 Replies)
Discussion started by: jav_v
3 Replies
CREATE TEXT SEARCH
TEMPLATE(7) PostgreSQL 9.2.7 Documentation CREATE TEXT SEARCH TEMPLATE(7)
NAME
CREATE_TEXT_SEARCH_TEMPLATE - define a new text search template
SYNOPSIS
CREATE TEXT SEARCH TEMPLATE name (
[ INIT = init_function , ]
LEXIZE = lexize_function
)
DESCRIPTION
CREATE TEXT SEARCH TEMPLATE creates a new text search template. Text search templates define the functions that implement text search
dictionaries. A template is not useful by itself, but must be instantiated as a dictionary to be used. The dictionary typically specifies
parameters to be given to the template functions.
If a schema name is given then the text search template is created in the specified schema. Otherwise it is created in the current schema.
You must be a superuser to use CREATE TEXT SEARCH TEMPLATE. This restriction is made because an erroneous text search template definition
could confuse or even crash the server. The reason for separating templates from dictionaries is that a template encapsulates the "unsafe"
aspects of defining a dictionary. The parameters that can be set when defining a dictionary are safe for unprivileged users to set, and so
creating a dictionary need not be a privileged operation.
Refer to Chapter 12, Full Text Search, in the documentation for further information.
PARAMETERS
name
The name of the text search template to be created. The name can be schema-qualified.
init_function
The name of the init function for the template.
lexize_function
The name of the lexize function for the template.
The function names can be schema-qualified if necessary. Argument types are not given, since the argument list for each type of function is
predetermined. The lexize function is required, but the init function is optional.
The arguments can appear in any order, not only the one shown above.
COMPATIBILITY
There is no CREATE TEXT SEARCH TEMPLATE statement in the SQL standard.
SEE ALSO
ALTER TEXT SEARCH TEMPLATE (ALTER_TEXT_SEARCH_TEMPLATE(7)), DROP TEXT SEARCH TEMPLATE (DROP_TEXT_SEARCH_TEMPLATE(7))
PostgreSQL 9.2.7 2014-02-17 CREATE TEXT SEARCH TEMPLATE(7)