Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Sorting a column in a file based on a column in a second file Post 302744435 by vbe on Friday 14th of December 2012 10:22:48 AM
Old 12-14-2012
Do you mind showing what you have done so far?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sorting csv file based on column selected

Hi all, in my csv file it'll look like this, and of course it may have more columns US to UK;abc-hq-jcl;multimedia UK to CN;def-ny-jkl;standard DE to DM;abc-ab-klm;critical FD to YM;la-yr-tym;standard HY to MC;la-yr-ytm;multimedia GT to KJ;def-ny-jrt;critical I would like to group... (4 Replies)
Discussion started by: tententen
4 Replies

2. UNIX for Dummies Questions & Answers

Sorting a txt file that is a single column

How do you sort a text file that is made up of a single column? (sorting done in alphabetical order) Example input: MAP1S ISYNA1 STAT6 Example output: ISYNA1 MAP1S STAT6 (1 Reply)
Discussion started by: evelibertine
1 Replies

3. UNIX for Dummies Questions & Answers

Sorting a txt file that is a single column

How do you sort a text file that is made up of a single column? (sorting done in alphabetical order) Example input: MAP1S ISYNA1 STAT6 Example output: ISYNA1 MAP1S STAT6 Double post (0 Replies)
Discussion started by: evelibertine
0 Replies

4. Shell Programming and Scripting

sorting based on a specified column in a text file

I have a tab delimited file with 5 columns 79 A B 20.2340 6.1488 8.5086 1.3838 87 A B 0.1310 0.0382 0.0054 0.1413 88 A B 46.1651 99.0000 21.8107 0.2203 89 A B 0.1400 0.1132 0.0151 0.1334 114 A B 0.1088 0.0522 0.0057 0.1083 115 A B... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

5. Shell Programming and Scripting

[SOLVED] Sorting into new files based on column

Hi, I have the following file, I need to sort it based on a column and write to different output files based on this column request_guid iso_country_cd address_data response_time 32895901-d17f-414c-ac93-3e7e0f5ec240 AND BaseName:CATALUNYA; HouseNumber:1; ISOCountryCode:AND;... (1 Reply)
Discussion started by: ramky79
1 Replies

6. UNIX for Dummies Questions & Answers

Sorting a file based on the absolute value of a column

I would like to sort a tab delimited text file based on the absolute value of its second column. How do I go about doing that? Thanks! Example input: A -12 B 0 C -6 D 7 Output: A -12 D 7 C -6 B 0 (4 Replies)
Discussion started by: evelibertine
4 Replies

7. Shell Programming and Scripting

Sorting file based on a numeric column

Hi, I use UBUNTU 12.04. I have a file with this structure: Name 2 1245787 A G 12 14 12 14 .... Name 1 1245789 C T 13 12 12 12..... I would like to sort my file based on the second column so to have this output for example: Name 1 1245789 C T 13 12 12 12..... Name 2 1245787 A G 12 14... (4 Replies)
Discussion started by: Homa
4 Replies

8. Shell Programming and Scripting

[Solved] Sorting a column based on another column

hello, I have a file as follows: F0100010 A C F0100040 A G BTA-28763-no-rs 77.2692 F0100020 A G F0100030 A T BTA-29334-no-rs 11.4989 F0100030 A T F0100020 A G BTA-29515-no-rs 127.006 F0100040 A G F0100010 A C BTA-29644-no-rs 7.29827 F0100050 A... (9 Replies)
Discussion started by: Homa
9 Replies

9. Shell Programming and Scripting

Pick the column value based on another column from .csv file

My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated. Main imp point, in my .csv file, third column is having price value with comma (1,20,300), it has... (2 Replies)
Discussion started by: Ganesh L
2 Replies

10. 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
QListBoxPixmap(3qt)													       QListBoxPixmap(3qt)

NAME
QListBoxPixmap - List box items with a pixmap and optional text SYNOPSIS
#include <qlistbox.h> Inherits QListBoxItem. Public Members QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap ) QListBoxPixmap ( const QPixmap & pixmap ) QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap, QListBoxItem * after ) QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString & text ) QListBoxPixmap ( const QPixmap & pix, const QString & text ) QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString & text, QListBoxItem * after ) ~QListBoxPixmap () virtual const QPixmap * pixmap () const virtual int height ( const QListBox * lb ) const virtual int width ( const QListBox * lb ) const Protected Members virtual void paint ( QPainter * painter ) DESCRIPTION
The QListBoxPixmap class provides list box items with a pixmap and optional text. Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap. See also QListBox, QListBoxItem, and Advanced Widgets. MEMBER FUNCTION DOCUMENTATION
QListBoxPixmap::QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap ) Constructs a new list box item in list box listbox showing the pixmap pixmap. QListBoxPixmap::QListBoxPixmap ( const QPixmap & pixmap ) Constructs a new list box item showing the pixmap pixmap. QListBoxPixmap::QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap, QListBoxItem * after ) Constructs a new list box item in list box listbox showing the pixmap pixmap. The item gets inserted after the item after, or at the beginning if after is 0. QListBoxPixmap::QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString & text ) Constructs a new list box item in list box listbox showing the pixmap pix and the text text. QListBoxPixmap::QListBoxPixmap ( const QPixmap & pix, const QString & text ) Constructs a new list box item showing the pixmap pix and the text to text. QListBoxPixmap::QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString & text, QListBoxItem * after ) Constructs a new list box item in list box listbox showing the pixmap pix and the string text. The item gets inserted after the item after, or at the beginning if after is 0. QListBoxPixmap::~QListBoxPixmap () Destroys the item. int QListBoxPixmap::height ( const QListBox * lb ) const [virtual] Returns the height of the pixmap in list box lb. See also paint() and width(). Reimplemented from QListBoxItem. void QListBoxPixmap::paint ( QPainter * painter ) [virtual protected] Draws the pixmap using painter. Reimplemented from QListBoxItem. const QPixmap * QListBoxPixmap::pixmap () const [virtual] Returns the pixmap associated with the item. Reimplemented from QListBoxItem. int QListBoxPixmap::width ( const QListBox * lb ) const [virtual] Returns the width of the pixmap plus some margin in list box lb. See also paint() and height(). Reimplemented from QListBoxItem. SEE ALSO
http://doc.trolltech.com/qlistboxpixmap.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qlistboxpixmap.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QListBoxPixmap(3qt)
All times are GMT -4. The time now is 02:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy