02-03-2006
Hey Gaurav!
First of all, many thanks for your time!
I do not get the code to work as desired. The first error message I get reads "integer expression expected". When I try again with column 2 and 3 given as integers, all lines within file.txt are printed, and not only the line containing the maximum value. I would really appreciate if you have som further comments to this.
Best regards
Kingkong
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a space delimited text file with thousands of lines, COLA.TXT that looks for example like this:
AA 123 456 789
AA 987 987 987
AA 987 988 888
AA 999 999 999
B 123 456 789
B 111 111 111
CCD 123 456 789
CCD 321 654 987
CCD
EE 11 11
EE
EE
EE 00 00 00
EE
Anyway, I need a script... (2 Replies)
Discussion started by: ajp7701
2 Replies
2. Shell Programming and Scripting
Hello folks,
Please guide me i have a file file.txt that have below text.
PETER JOHN peter@example.com
John Col john@example.com
Sara Paul sara@example.com
I just want to extract only email address list. (5 Replies)
Discussion started by: learnbash
5 Replies
3. Shell Programming and Scripting
I have a .csv file which is seperated with (;)
inputfile
---------
ZZZZ;AAAA;BBB;CCCC;DDD;EEE;
YYYY;BBBB;CCC;DDDD;EEE;FFF;
...
...
reading file line by line till end of file.
while reading each line output format should be .
i need to print only specific columns let say 5th... (2 Replies)
Discussion started by: rocking77
2 Replies
4. Shell Programming and Scripting
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
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Hi,
I have some data like below:
John 254
Chris 254
Matt 123
Abe 123
Raj 487
Moh 487
How can i print it using awk to have:
254 John,Chris
123 Matt,Abe
487 Raj,Moh
Thanks. (4 Replies)
Discussion started by: james2009
4 Replies
8. Shell Programming and Scripting
Hi, I have a little issue right now.
I have a file with 4 columns
test0000002,10030010330,c_,218
test0000002,10030010330,d_,202
test0000002,10030010330,b_,193
test0000002,10030010020,c_,178
test0000002,10030010020,b_,170
test0000002,10030010330,a_,166
test0000002,10030010020,a_,151... (3 Replies)
Discussion started by: Ebk
3 Replies
9. Shell Programming and Scripting
please help to write a awk command-line programs to achieve the following functions: Thank in advance.
Requeset Description:
compare two files f1 and f2, export to file f3:
1 Delete duplicate rows of in file f1 and file f2
2 If the 1th column of file f1 and file f2 is the same, then export... (1 Reply)
Discussion started by: weichanghe2000
1 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT DEBIAN
pdfoutline
pdfoutline(1) General Commands Manual pdfoutline(1)
NAME
pdfoutline - add outlines (aka bookmarks) to PDF files
SYNOPSIS
pdfoutline input.pdf outlines.txt output.pdf
DESCRIPTION
pdfoutline reads input file given as first argument, adds outlines from text file given as second argument, and saves result to file with
name given as third argument.
File with outlines information should consist of lines in the following format:
<level> <page> Outline text
<level> and <page> should be integers. Each field should be separated by exactly one space symbol. All values for <level> should be
greater or equal than that of the first line. Page numeration starts with 1.
Outlines file can contain comments that start with # in first column. Comments and empty lines are ignored.
OPTIONS
pdfoutline accepts no options.
EXAMPLES
Here is example of outlines data file:
0 1 Document title
1 1 Chapter 1
2 1 Chapter 1.1
2 2 Chapter 1.2
1 3 Chapter 2
Using this file will result in outlines like the following:
Document title
+-Chapter 1
| +-Chapter 1.1
| +-Chapter 1.2
+-Chapter 2
AUTHOR
pdfoutline author is Eugeniy Meshcheryakov <eugen@debian.org>
pdfoutline is part of fntsample and can be downoaded from <http://fntsample.sourceforge.net/>.
2010-10-14 pdfoutline(1)