$ cat myfile
Introduction:Intro_123.html
Product definition:Prod_def.html
System Setup:SSetup-64bit.html
Setting up user accounts:Set_user_acc.html
Code:
$ nawk -F: '{print "The filename is:",$1,"and the title of the page is:",$2}' myfile
The filename is: Introduction and the title of the page is: Intro_123.html
The filename is: Product definition and the title of the page is: Prod_def.html
The filename is: System Setup and the title of the page is: SSetup-64bit.html
The filename is: Setting up user accounts and the title of the page is: Set_user_acc.html
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Hi everybody (first time posting here)
I have a file1 that looks like >
1,101,0.1,0.1
1,26,0.1,0.1
1,3,0.1,0.1
1,97,0.5,0.5
1,98,8.1,0.218919
1,99,6.2,0.248
2,101,0.1,0.1
2,24,3.1,0.147619
2,25,23.5,0.559524
2,26,34,0.723404with 762 lines..
I have another 'similar' file2 >
... (10 Replies)
Hello,
I'm trying to get the TOP and BASE numbers printed out
File looks like this:
2300 CAR # 2300 is the TOP
2310 CAR
2335 CAR
2455 CAR # 2455 is the BASE
1000 MOTOR # 2455 will become this TOP
2000 MOTOR
3000 MOTOR
4000 MOTOR # 4000 is the BASE
2345 BIKE # 4000... (8 Replies)
Hi experts,
I need to print the first field first then last two fields should come next and then i need to print rest of the fields.
Input :
a1,abc,jsd,fhf,fkk,b1,b2
a2,acb,dfg,ghj,b3,c4
a3,djf,wdjg,fkg,dff,ggk,d4,d5
Expected output:
a1,b1,b2,abc,jsd,fhf,fkk... (6 Replies)
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
A record contains 50 fields separated by "~". I need to assign each of these fields to different variables. Following is the shell script approach I tried.
RECORD="FIELD1~FIELD2~FIELD3~FIELD4~FIELD5~...........~FIELD50"
VAR1=$(echo ${RECORD} | cut -d"~" -f 1)
VAR2=$(echo ${RECORD} | cut... (5 Replies)
The below code works great, kindly provided by @Don Cragun, the lines in bold print the current output. Since some of the fields printed can be blank some of the fields are shifted. I can not seem too add . to the blank fields like in the desired output. Basically, if there is nothing in the field... (10 Replies)
Hi,
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
TEST01 APP_USER_PROFILE
USER03 APP_USER_PROFILE
TEST02 APP_USER_EXP_PROFILE
TEST04 APP_USER_PROFILE
USER01 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
LEARN ABOUT REDHAT
qvgroupbox
QVGroupBox(3qt)QVGroupBox(3qt)NAME
QVGroupBox - Organizes a group of widgets in a vertical column
SYNOPSIS
#include <qvgroupbox.h>
Inherits QGroupBox.
Public Members
QVGroupBox ( QWidget * parent = 0, const char * name = 0 )
QVGroupBox ( const QString & title, QWidget * parent = 0, const char * name = 0 )
~QVGroupBox ()
DESCRIPTION
The QVGroupBox widget organizes a group of widgets in a vertical column.
QVGroupBox is a convenience class that offers a thin layer on top of QGroupBox. Think of it as a QVBox that offers a frame with a title.
<center>
[Image Omitted]
</center>
See also QHGroupBox, Widget Appearance and Style, Layout Management, and Organizers.
MEMBER FUNCTION DOCUMENTATION QVGroupBox::QVGroupBox ( QWidget * parent = 0, const char * name = 0 )
Constructs a vertical group box with no title.
The parent and name arguments are passed on to the QWidget constructor.
QVGroupBox::QVGroupBox ( const QString & title, QWidget * parent = 0, const char * name = 0 )
Constructs a vertical group box with the title title.
The parent and name arguments are passed on to the QWidget constructor.
QVGroupBox::~QVGroupBox ()
Destroys the vertical group box, deleting its child widgets.
SEE ALSO
http://doc.trolltech.com/qvgroupbox.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
(qvgroupbox.3qt) and the Qt version (3.1.1).
Trolltech AS 9 December 2002 QVGroupBox(3qt)