9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
is there any way to align my text so every column begins on the same line as the previous line?
here's my command:
printf "THEN ( ${SEARCHPATTB} = Hour = ${CALTOTB} ) %8s => %8s NOW ( ${SEARCHPATT} = Hour = ${CALTOT} ) %7s => %7s Reduced By: %7s -${RESULT}"\\n
output i'm currently getting... (2 Replies)
Discussion started by: SkySmart
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file with texts shown below,
<2013 abc
<2013 start
request pdu
dot1q
end pdu
response pdu
dot1q
end pdu
am searching for the text "dot1q" , when it matches in the file , i need the contents between "<2013 start" and "end pdu". Can some one help on this ?
... (5 Replies)
Discussion started by: giri_luck
5 Replies
3. AIX
I have two identical systems p740 with 2 lpars in each server. I dont want to install os from scratch on each lpar neither I want to use nim nor mksysb. Will it work perfectly if I install a fresh OS on 1 lpar and do alt disk clone for other lpras. My each lpar is having 2 physical disks.
Now if... (2 Replies)
Discussion started by: vjm
2 Replies
4. UNIX for Dummies Questions & Answers
Hello guys,
I hope anyone can help me with this ...
I have a file in which i have around 6000 lines of same format text like
1234567
2345678
3456789
....................
Now what I have to do is that there I have to search these numbers in another file which contains hundreds of... (1 Reply)
Discussion started by: m_usmanayub
1 Replies
5. Shell Programming and Scripting
Hi,
I want to concatenate the texts in the file but there are different scenario's.
Ist Scenario.
The contents of file has id`language,sequence number,text,language
Here id`language is a key pair to identify the correct language.
Sequnce number is the order the text being inserted.
Text... (3 Replies)
Discussion started by: vanitham
3 Replies
6. Shell Programming and Scripting
Hello,
I have two files:
File1:
a
b
c
d
File2:
b
c
e
I need 'e' as output....
Thanks..
---------- Post updated at 12:16 PM ---------- Previous update was at 12:15 PM ---------- (1 Reply)
Discussion started by: shekhar2010us
1 Replies
7. Shell Programming and Scripting
hi, i want to examine two file and write some codes to a third file. note that seperators are TAB, not space.
first file:
192.168.1.1 3
192.168.1.2 2
192.168.3.2 2
192.168.7.3 1
...
second file:
192.168.1.1 1 10.15.1.1 3 30 10.15.2.1 2 40
192.168.1.1 2 10.23.4.5... (3 Replies)
Discussion started by: gc_sw
3 Replies
8. UNIX for Dummies Questions & Answers
in Win, one can use the
Alt + 3-digit numeric code
combination to spawn any ASCII character.
Linux, OTOH has
Ctrl-Shift-U + alphanumeric code
combination to spawn any UNICODE character.
bottom line: I'd like to be able to do what Win can do, please.
I was told it was possible, but made... (5 Replies)
Discussion started by: ialoq
5 Replies
9. UNIX for Dummies Questions & Answers
ok guys, I have been given a big project, I need to implement alt boot on over 40+ servers, mainly solaris 8 and AIX 4.3, AIX 5.1. A couple of questions
1)can someone describe alt boot, my take is that if the primary disk fails(disk with root filesystems), this altboot disk takes over
2)can... (4 Replies)
Discussion started by: csaunders
4 Replies
QwtPlainTextEngine(3) Qwt User's Guide QwtPlainTextEngine(3)
NAME
QwtPlainTextEngine -
A text engine for plain texts.
SYNOPSIS
#include <qwt_text_engine.h>
Inherits QwtTextEngine.
Public Member Functions
virtual void draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const
virtual int heightForWidth (const QFont &font, int flags, const QString &text, int width) const
virtual bool mightRender (const QString &) const
QwtPlainTextEngine ()
virtual void textMargins (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const
virtual QSize textSize (const QFont &font, int flags, const QString &text) const
virtual ~QwtPlainTextEngine ()
Detailed Description
A text engine for plain texts.
QwtPlainTextEngine renders texts using the basic Qt classes QPainter and QFontMetrics.
Constructor & Destructor Documentation
QwtPlainTextEngine::QwtPlainTextEngine ()
Constructor.
QwtPlainTextEngine::~QwtPlainTextEngine () [virtual]
Destructor.
Member Function Documentation
void QwtPlainTextEngine::draw (QPainter *painter, const QRect &rect, intflags, const QString &text) const [virtual]
Draw the text in a clipping rectangle. A wrapper for QPainter::drawText.
Parameters:
painter Painter
rect Clipping rectangle
flags Bitwise OR of the flags used like in QPainter::drawText
text Text to be rendered
Implements QwtTextEngine.
int QwtPlainTextEngine::heightForWidth (const QFont &font, intflags, const QString &text, intwidth) const [virtual] Find the height for a given
width
Parameters:
font Font of the text
flags Bitwise OR of the flags used like in QPainter::drawText
text Text to be rendered
width Width
Returns:
Calculated height
Implements QwtTextEngine.
bool QwtPlainTextEngine::mightRender (const QString &) const [virtual] Test if a string can be rendered by this text engine.
Returns:
Always true. All texts can be rendered by QwtPlainTextEngine
Implements QwtTextEngine.
void QwtPlainTextEngine::textMargins (const QFont &font, const QString &, int &left, int &right, int &top, int &bottom) const [virtual] Return
margins around the texts
Parameters:
font Font of the text
left Return 0
right Return 0
top Return value for the top margin
bottom Return value for the bottom margin
Implements QwtTextEngine.
QSize QwtPlainTextEngine::textSize (const QFont &font, intflags, const QString &text) const [virtual] Returns the size, that is needed to
render text
Parameters:
font Font of the text
flags Bitwise OR of the flags used like in QPainter::drawText
text Text to be rendered
Returns:
Caluclated size
Implements QwtTextEngine.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtPlainTextEngine(3)