Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Maximum of the values from the output a query Post 302933478 by anbu23 on Friday 30th of January 2015 04:23:58 AM
Old 01-30-2015
Can you please add code tags to your input data
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Searching partial columns and returning maximum as output

Hello, I am just getting starting with awk and wondering if anyone could help with the following problem. I have a large file of data, 50,000 rows x 6 columns. I would like to search in blocks of 500 rows for a maximum value in a specific column and compile an output file that prints the... (0 Replies)
Discussion started by: xb_analysis
0 Replies

2. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

3. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

4. Shell Programming and Scripting

AWK, Perl or Shell? Unique strings and their maximum values from 3 column data file

I have a file containing data like so: 2012-01-02 GREEN 4 2012-01-02 GREEN 6 2012-01-02 GREEN 7 2012-01-02 BLUE 4 2012-01-02 BLUE 3 2012-01-02 GREEN 4 2012-01-02 RED 4 2012-01-02 RED 8 2012-01-02 GREEN 4 2012-01-02 YELLOW 5 2012-01-02 YELLOW 2 I can't always predict what the... (4 Replies)
Discussion started by: rich@ardz
4 Replies

5. Shell Programming and Scripting

Print minimum and maximum values using awk

Can I print the minimum and maximum values of values in first 4 columns ? input 3038669 3038743 3037800 3038400 m101c 3218627 3218709 3217600 3219800 m290 ............. output 3037800 3038743 m101c 3217600 3219800 m290 (2 Replies)
Discussion started by: quincyjones
2 Replies

6. Shell Programming and Scripting

Query the table and return values to shell script and search result values from another files.

Hi, I need a shell script, which would search the result values from another files. 1)execute " select column1 from table_name" query on the table. 2)Based on the result, need to be grep from .wft files. could please explain about this.Below is the way i am using. #!/bin/sh... (4 Replies)
Discussion started by: Rami Reddy
4 Replies

7. Shell Programming and Scripting

Output minimum and maximum values for replicates ID

Hi All I hope that someone could help me! I have an input file like this, with 4 colum(ID, feature1, start, end): a x 1 5 b x 3 10 b x 4 9 b x 5 16 c x 5 9 c x 4 8 And my output file should be like this: a x 1 5 b x 3 16 c x 4 9 What I would like to do is to output for each ID... (2 Replies)
Discussion started by: giuliangiuseppe
2 Replies

8. Shell Programming and Scripting

Find minimum and maximum values based on column with associative array

Hello, I need to find out the minimum and maximum values based on specific column, and then print out the entire row with the max value. Infile.txt: scf6 290173 290416 . + X_047241 T_00113118-1 scf6 290491 290957 . + X_047241 T_00113118-2 scf6 290898 290957 . + X_047241 T_00113119-3 scf6... (2 Replies)
Discussion started by: yifangt
2 Replies

9. UNIX for Beginners Questions & Answers

To extract values after the maximum value in a txt file

Hello, I'm new to scripting and I need to write a bash script. Here is example of file on which I'm working: 0.3092381 0.3262799 0.3425480 0.3578379 0.3719490 0.3846908 0.3958855 0.4053738 0.4130160 0.4186991 0.4223357 ... (1 Reply)
Discussion started by: jeo_fb
1 Replies

10. Shell Programming and Scripting

Extracting values after the maximum value in a txt file

Hello, I'm new to scripting and I need to write a bash script. Here is example of file on which I'm working: 0.3092381 0.3262799 0.3425480 0.3578379 0.3719490 0.3846908 0.3958855 0.4053738 0.4130160 0.4186991 0.4223357 0.4238688 ... (14 Replies)
Discussion started by: jeo_fb
14 Replies
gtk-query-immodules-2.0(1)					   User Commands					gtk-query-immodules-2.0(1)

NAME
gtk-query-immodules-2.0 - create a cache file used by GTK+ to efficiently locate input method modules SYNOPSIS
gtk-query-immodules-2.0 [immodule] [immodule...] DESCRIPTION
gtk-query-immodules-2.0 searches for input method (IM) modules for GTK+ and and writes information about them to stdout. If the output is redirected to /etc/gtk-2.0/gtk.immodules, then this will cause the GTK+ library to use these modules by default. This program is typically used by developers who are packaging GTK+ software which adds additional modules. IM modules can be selected by right-clicking on input fields when running GTK+ programs. An input method is a software component that con- verts key presses into text input that cannot be typed directly. Input methods are normally used to input text for languages that have more characters than can fit on a standard keyboard. Input methods are commonly used for Japanese, Chinese, and Korean text but are also used for other languages such as Thai and Hindi. If any modules are specified on the command line, gtk-query-immodules-2.0 only looks at those particular files. If no modules are specified on the command line, gtk-query-immodules-2.0 scans the user's GTK_PATH environment variable and looks at all IM modules that are specified there. When run, gtk-query-immodules-2.0 creates context information for each module. Each module has one or more contexts. If no IM modules are specified on the command line, the scanned paths are included as a comment in the output. OPTIONS
None. OPERANDS
The following operands are supported: immodule Specify the pathname to an IM module. This can be a full pathname, or relative to the current working directory. EXAMPLES
Example 1: Installing a new Input Method module myimmodule.so example% gtk_version=`pkg-config --variable=gtk_binary_version gtk-2.0` example% cp myimmodule.so /usr/lib/gtk-2.0/$gtk_version/immodules example% gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of gtk-query-immodules-2.0: GTK_PATH Specifies directories to prepend to the input method module path. GTK_IM_MODULE Specifies what IM modules to use, in preference to the IM module determined from the locale GTK_IM_MODULE_FILE Specifies the file that lists the IM modules to load. This environment variable overrides the im_module_file speci- fied in the RC files, which in turn overrides the default value in the system gtk.immodules file. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gtk-query-immodules-2.0 The command-line executable for the application. /usr/lib/gtk-2.0/version/immodules Default location of IM modules. /etc/gtk-2.0/gtk.immodules The GTK+ input method modules file. /usr/share/gtk-doc/html/gtk Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-base-libs-devel | +-----------------------------+-----------------------------+ |Interface stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
gdk-pixbuf-csource(1), gdk-pixbuf-query-loaders(1), glib-genmarshal(1), glib-gettextize(1), glib-mkenums(1), gobject-query(1), gtk-update- icon-cache(1), libgtk-x11-2.0(3), attributes(5), environ(5), gnome-interfaces(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2006, 2007. SunOS 5.11 21 Oct 2007 gtk-query-immodules-2.0(1)
All times are GMT -4. The time now is 05:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy