Sponsored Content
Top Forums Shell Programming and Scripting awk to select lines with maximum value of each record based on column value Post 302988200 by yifangt on Wednesday 21st of December 2016 05:38:58 PM
Old 12-21-2016
Thanks! I get it now.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Select Record based on First Column

Hi, I have a file with multiple records...and I have to select records based on first column....here is the sample file... I01,abc,125,1a2,LBVI02 I01,abc,126,2b5,LBVI02 I02,20070530,254,abc,LLBI01 I02,20070820,111,bvd,NGBI01 I need all records with I01 in first field in one file and... (8 Replies)
Discussion started by: mgirinath
8 Replies

2. Shell Programming and Scripting

awk to select rows based on condition on column

I have got a file like this 003ABC00281020091005000100042.810001 ... (8 Replies)
Discussion started by: Maruti
8 Replies

3. Shell Programming and Scripting

Awk - how to select the column based on day of month

Problem, How can you pass today's date (eg) 18 into Awk and select the field representing the 18th column? I have an output that I want to interact with based on what day it is information=0:0 192:0 5436:0 22:99 0:0 0:0 1234:0 1359:09 DAY=date'+%d' numbrs=`$information | awk... (2 Replies)
Discussion started by: Gizmo1007
2 Replies

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

5. Shell Programming and Scripting

awk print non matching lines based on column

My item was not answered on previous thread as code given did not work I wanted to print records from file2 where comparing column 1 and 16 for both files find rows where column 16 in file 1 does not match column 16 in file 2 Here was CODE give to issue ~/unix.com$ cat f1... (0 Replies)
Discussion started by: sigh2010
0 Replies

6. Shell Programming and Scripting

Select record having different value in second column

I want records which have more than one and different value in the second column on the below sample file. Ex, I have the samle file below :- XYZ 1 XYZ 3 abc 1 abc 1 qwe 2 qwe 1 qwe 3 I want to select XYZ and QWE line only. (6 Replies)
Discussion started by: Sanjeev Yadav
6 Replies

7. UNIX for Dummies Questions & Answers

awk solution to duplicate lines based on column

Hi experts, I have a tab-delimited file with one column containing values separated by a comma. I wish to duplicate the entire line for every value in that comma-delimited field. For example: $cat file 4444 4444 4444 4444 9990 2222,7777 6666 2222 ... (3 Replies)
Discussion started by: torchij
3 Replies

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

9. 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
SYNCTEX(5)						      BSD File Formats Manual							SYNCTEX(5)

NAME
synctex -- Synchronize TeXnology help file DESCRIPTION
Synchronize TeXnology help file (synctexs) are text files that help input/output synchronization during document preparation with the TeX typesetting system. BASICS
The structure of this file should not be considered public, in the sense that no one should need to parse its contents, except the synctex command line utility, and the synctex_parser library. Unless it is absolutely not avoidable, access to the contents of the synctex file should only be made through requests made to the synctex command line utility. STRUCTURE
The element structure of a synctex file is a list of text line records as follows. '*', '+', and '?' have their usual EBNF meanings: '*' means zero or more, '+' means one or more, and '?' means zero or one (i.e., optional). <SyncTeX> ::= (The whole contents in 4 sections) <Preamble> <Content> <Postamble> <Post Scriptum> Each section starts with the first occurrence of a sectioning line, and ends with the next section, if any. In the following definitions, we do not mention the section ending condition. The preamble <Preamble> ::= "SyncTeX Version:" <Version Number> <EOL> <Input Line>* "Magnification:" <TeX magnification> <EOL> "Unit:" <unit in scaled point> <EOL> "X Offset:" <horizontal offset in scaled point> <EOL> "Y Offset:" <vertical offset in scaled point> <EOL> <Input Line> ::= "Input:" <tag> ":" <File Name> <EOL> The content <Content> ::= <byte offset record> "Content:" <EOL> <sheet(1)> <Input Line>* <sheet(2)> <Input Line>* ... <sheet(N)> <Input Line>* <byte offset record> ::= "!" <byte offset> <end of record> <sheet(n)> ::= <byte offset record> "{" <the integer n> <end of record>/ <box content>* <byte offset record> "}" <the integer n> <end of record> The <box content> describes what is inside a box. It is either a vertical or horizontal box, with some records related to glue, kern or math nodes. <box content> ::= <vbox section>|<hbox section> |<void vbox record>|<void hbox record> |<current record>|<glue record>|<kern record>|<math record> <vbox section> ::= "[" <link> ":" <point> ":" <size> <end of record> <box content>* "]" <end of record> <hbox section> ::= ( <link> ":" <point> ":" <size> <end of record> <box content>* ")" <end of record> Void boxes: <void vbox record> ::= "v" <link> ":" <point> ":" <size> <end of record> <void hbox record> ::= "h" <link> ":" <point> ":" <size> <end of record> <size> ::= <Width> "," <Height> "," <Depth> <Width> ::= <integer> <Height> ::= <integer> <Depth> ::= <integer> <link> ::= <tag> "," <line>( "," <column>)? <line> ::= <integer> <column> ::= <integer> The forthcoming records are basic one liners. <current record> ::= "x" <link> ":" <point> <end of record> <kern record> ::= "k" <link> ":" <point> ":" <Width> <end of record> <glue record> ::= "g" <link> ":" <point> <end of record> <math record> ::= "$" <link> ":" <point> <end of record> The postamble The postamble closes the file If there is no postamble, it means that the typesetting process did not end correctly. <Postamble>::= <byte offset record> "Count:" <Number of records> <EOL> The post scriptum The post scriptum contains material possibly added by 3rd parties. It allows to append some transformation (shift and magnify). Typically, one applies a dvi to pdf filter with offset options and magnification, then he appends the same options to the synctex file, for example synctex update -o foo.pdf -m 0.486 -x 9472573sp -y 13.3dd source.dvi <Post Scriptum>::= <byte offset record> "Post Scriptum:" <EOL> "Magnification:" <number> <EOL> (Set additional magnification) "X Offset:" <dimension> <EOL> (Set horizontal offset) "Y Offset:" <dimension> <EOL> (Set vertical offset) This second information will override the offset and magnification previously available in the preamble section. All the numbers are encoded using the decimal representation with "C" locale. USAGE
The <current record> is used to compute the visible size of hbox's. The byte offset is an implicit anchor to navigate the synctex file from sheet to sheet. Independant Mar 13, 2012 Independant
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy