Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Using awk to find and use the maximum value in column of data Post 302898194 by tintin72 on Sunday 20th of April 2014 03:37:01 AM
Old 04-20-2014
works like a dream! Many thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find different column numbers among rows in data

I want to find the different column numbers among rows in a file. For example: A001 a b c d e ... N A002 a b c d e ... N A003 a b c d e ... N+1 A004 a b c d e ... N A005 a b c d e ... N+2 : : For most of the lines I will have N columns (say 1000 rows) in each line except the line 3... (5 Replies)
Discussion started by: AMBER
5 Replies

2. Shell Programming and Scripting

find expression with awk in only one column, and if it fits, print whole column

Hi. How do I find an expression with awk in only one column, and if it fits, then print that whole column. 1 apple oranges 2 bannanas pears 3 cats dogs 4 hesaid shesaid echo "which number:" read NUMBER (user inputs number 2 for this example) awk " /$NUMBER/ {field to search is field... (2 Replies)
Discussion started by: glev2005
2 Replies

3. Shell Programming and Scripting

for each different entry in column 1 extract maximum values from column 2 in unix/awk

Hello, I have 2 columns (1st column has multiple entries but the corresponding values in the column 2 may be the same or different.) however I want to extract unique values for each entry in column 1 by assigning the max value from column 2 SDF4 -0.211654 SDF4 0.978068 ... (1 Reply)
Discussion started by: Diya123
1 Replies

4. Homework & Coursework Questions

Find the Maximum value and average of a column

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to complete a script which will allow me to find: a) reads a value from the keyboard. (ask the... (4 Replies)
Discussion started by: dstewie
4 Replies

5. 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

6. Programming

Find gaps in time data and replace missing time value and column 2 value by interpolation in awk

Dear all, I am kindly seeking assistance on the following issue. I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file 5.00000 15.5030 5.05000 15.6680 5.10000 16.0100 5.15000 16.3450 5.20000 16.7120 5.25000... (4 Replies)
Discussion started by: malandisa
4 Replies

7. 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

8. Shell Programming and Scripting

awk to select lines with maximum value of each record based on column value

Hello, I want to get the maximum value of each record separated by empty line based on the 3rd column of each row within each record? Input: A1 chr5D 634 7 82 707 A2 chr5D 637 6 82 713 A3 chr5D 637 5 82 713 A4 chr5D 626 1 82 704... (4 Replies)
Discussion started by: yifangt
4 Replies

9. Shell Programming and Scripting

Get maximum per column from CSV file, based on date column

Hello everyone, I am using ksh on Solaris 10 and I'm gathering data in a CSV file that looks like this: 20170628-23:25:01,1,0,0,1,1,1,1,55,55,1 20170628-23:30:01,1,0,0,1,1,1,1,56,56,1 20170628-23:35:00,1,0,0,1,1,2,1,57,57,2 20170628-23:40:00,1,0,0,1,1,1,1,58,58,2... (6 Replies)
Discussion started by: ejianu
6 Replies

10. Shell Programming and Scripting

awk to find maximum and minimum from column and store in other column

Need your support for below. Please help to get required output If column 5 is INV then only consider column1 and take out duplicates/identical rows/values from column1 and then put minimum value of column6 in column7 and put maximum value in column 8 and then need to do subtract values of... (7 Replies)
Discussion started by: as7951
7 Replies
Nikwi(6)							      Deluxe								  Nikwi(6)

NAME
Nikwi Deluxe - platform game where the goal is to collect candies SYNOPSIS
nikwi [--fullscreen] DESCRIPTION
You play as a 9 year old boy in a game about his absolute dream: a world made of candies! Your role is to guide Nikwi through all the 30 levels, eat all the candies in each level and avoid the monsters and the hazards that each level has. Nikwi has a talent on jumping high - although his falls are not as good as he would like - and this is his only armor against the monsters which try to turn his dream into a nightmare. Every six levels, the theme changes and the gameplay is altered a bit. Every two levels or so, new monsters appear - monsters which require different approaches to be taken in order to avoid them. USAGE
The game contains two main screens, the menu and the game: The menu The menu is the screen in which you enter when the game starts. It contains three options: New Game, Credits and Quit. You can use the arrows keys up and down to select a menu option (two bobbing candies appear at the left and at the right of the selected option) and the Enter key to activate the selected option. The options act as follows: New game - This option begins a new game. If you already have a game in the process and you went to the menu by pressing ESC (see the Controls part of this manual below), the current game is ended and a new game begins from the first level. Credits - It shows a screen with information about the game's developers. Quit - It immediatelly quits the game. The shareware version will show some teaser screenshots of the full version before quitting. The game This is where all the fun takes place. In the game screen you see your character, Nikwi, the monsters, the hazards, the candies and the setting itself. For information about controlling Nikwi, see below. Some screens -like the Credits screen- wait from the user to press a key in order to dissappear and others -like the logo screen at the beginning on the game- to wait for a few seconds. Controls You control Nikwi using the keyboard. The keys are presented in the table below: Arrow left/right - Make Nikwi walk to the left or the right direction. If Nikwi is in the air, he turn to that direction. Arrow up - Make Nikwi jump. Nikwi needs to be on ground in order to jump, but he can also air-jump: if he leaves the ground without jump- ing (by falling), he can jump in the middle air. Mastering air jumping will help the player to complete the game faster. F6 - Restart level. If you get stuck in a level or you think you can't go back, use F6 to restart the level. There are unlimited times you can play a level, so don't feel bad if you restart a level. F10 - Quick quit. If, for any reason, you want to exit the game as quickly as possible, press F10 and your wish will become true: the game will exit instantly, like if nothing has happened. Note that the shareware version will pop a message reminding you to obtain the full version. ESC - Pauses the game and goes back to the menu. OPTIONS
These command line options are available: --fullscreen You can use fullscreen mode by running the game as "nikwi --fullscreen" REQUIREMENTS
Nikwi requires at least a Pentium 3 or later CPU to work (it may work with older CPUs, but the use of older CPUs than Pentium 3 is not rec- ommended and definitelly not supported) running at least at 600MHz. It also requires a graphics card that can support 640x480 with 16bits of color (most cards that are available for Pentium 3 support this mode). Lastly, it requires at least 32MB of system RAM memory. For smooth gameplay, a CPU running at 2GHz and a video card with 2D acceleration and 16MB of video ram is recommended. In order to take advantage of the 2D acceleration, Nikwi must be run in fullscreen mode. Nikwi requires Windows 2000, Windows XP or newer or Linux with kernel 2.6 or newer. It may work on other operating systems, but we cannot provide support for them. For Linux users: Nikwi requires the latest version of SDL (has been tested and compiled with SDL 1.2.9). Most Linux distributions include SDL, but if yours doesn't -or if the version included is very old- visit http://www.libsdl.org/ to obtain it. Note: the game may or may not run in order and weaker systems than those mentioned above. In any case, the use in such systems is discour- aged and not supported. AUTHOR
Nikwi was written by Kostas "Bad Sector" Michalopoulos <badsector@slashstone.com>. This manual page was written for Debian by Miriam Ruiz <little_miry@yahoo.es>. SEE ALSO
Nikwi Deluxe Homepage <http://www.slashstone.com/more/nikwi> Nikwi 28 September 2006 Nikwi(6)
All times are GMT -4. The time now is 04:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy