7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Awk Experts,
I can write oneliner some time but find difficulty writing like a flow of a program in multiple lines,
could you please help how to write awk program , like long awk programs, any help to start with,
For example,
How to write this in multiple line:
ls -l | awk... (6 Replies)
Discussion started by: rveri
6 Replies
2. Shell Programming and Scripting
Hello,
I was trying to split a string to characters by perl oneliner.
echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe:
echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq -ic 8
1 T
1... (6 Replies)
Discussion started by: yifangt
6 Replies
3. Shell Programming and Scripting
Hi,
I need to replace the ip 1.1.1.1 with the name test.sol.box . I have tried and come up with following code.
do we have any other way of doing this with nawk??
Data:
#This is a test setup.Please enter your values and corresponding port number here
##########################
Server Host... (5 Replies)
Discussion started by: chidori
5 Replies
4. UNIX for Dummies Questions & Answers
for example, i have a file with below content:
123413
866688
816866
818818
i want the output as:
This is header
123413
866688
816866
818818
This is trailer
i am able to achieve it using a bash script. (2 Replies)
Discussion started by: pandeesh
2 Replies
5. Shell Programming and Scripting
Hi
I have a file say text.txt and has data as below.
text.txt
-------
/abc/def/tom/hanks
/abc/def/al/pacino
/def/dgg/matt/damon
Now I have to cut the field 3 and field 4 treating / as delimiter and save in the same file. Below is the how the output should be in the same file.
I... (1 Reply)
Discussion started by: lijjumathew
1 Replies
6. Shell Programming and Scripting
I am trying to take first 3 columns in a file which matches the word "abc", but i am getting the below error,
<error>
Global symbol "@F" requires explicit package name at ./new.pl
</error>
whereas when i give the below,grep abc /home/test/file.txt|perl -lane 'print \"$F $F $F\" in unix prompt... (4 Replies)
Discussion started by: anspks
4 Replies
7. Shell Programming and Scripting
is this possible a one liner sed command.
I have a text file ex.
from :
xxx yyy ZZZ /test/devl/aasdasd.log1
xxx yyy ZZZ /test/devl/aasdasd.log2
to :
xxx yyy ZZZ /test/prod/aasdasd.log1
xxx yyy ZZZ /test/prod/aasdasd.log2
and I want to sed only the fourth column
sed 's/devl/prod/g' ... (8 Replies)
Discussion started by: chaseeem
8 Replies
LEARN ABOUT REDHAT
qhboxlayout
QHBoxLayout(3qt) QHBoxLayout(3qt)
NAME
QHBoxLayout - Lines up widgets horizontally
SYNOPSIS
#include <qlayout.h>
Inherits QBoxLayout.
Public Members
QHBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )
QHBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )
QHBoxLayout ( int spacing = -1, const char * name = 0 )
~QHBoxLayout ()
DESCRIPTION
The QHBoxLayout class lines up widgets horizontally.
This class is used to construct horizontal box layout objects. See QBoxLayout for more details.
The simplest use of the class is like this:
QBoxLayout * l = new QHBoxLayout( widget );
l->setAutoAdd( TRUE );
new QSomeWidget( widget );
new QSomeOtherWidget( widget );
new QAnotherWidget( widget );
or like this:
QBoxLayout * l = new QHBoxLayout( widget );
l->addWidget( existingChildOfWidget );
l->addWidget( anotherChildOfWidget );
<center>
[Image Omitted]
</center>
See also QVBoxLayout, QGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
MEMBER FUNCTION DOCUMENTATION
QHBoxLayout::QHBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )
Constructs a new top-level horizontal box called name, with parent parent.
The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels
between neighboring children. If spacing is -1 the value of margin is used for spacing.
QHBoxLayout::QHBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )
Constructs a new horizontal box called name name and adds it to parentLayout.
The spacing is the default number of pixels between neighboring children. If spacing is -1, this QHBoxLayout will inherit its parent's
spacing().
QHBoxLayout::QHBoxLayout ( int spacing = -1, const char * name = 0 )
Constructs a new horizontal box called name name. You must add it to another layout.
The spacing is the default number of pixels between neighboring children. If spacing is -1, this QHBoxLayout will inherit its parent's
spacing().
QHBoxLayout::~QHBoxLayout ()
Destroys this box layout.
The layout's widgets aren't destroyed.
SEE ALSO
http://doc.trolltech.com/qhboxlayout.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
(qhboxlayout.3qt) and the Qt version (3.1.1).
Trolltech AS 9 December 2002 QHBoxLayout(3qt)