I have a file that looks like this:
I need to add every line that starts with "http://" to last line that doesn't start with "http://", so that the file becomes:
I want to concatenate any particular field of the file with any String say SSB....but i am not able to do it...
I hv tried the following code....but its saying there is error in parsing it..
awk 'BEGIN { FS = "," ; OFS = "," ; } { for ( i = 1 ; i < 5 ; i++ ) {a=i;b="SSB"; print $1,$a$b,$3 } }'... (3 Replies)
Sample input (line feed indicated by )
---------------
The red fox jumped
over the brown fence of the
red hous
He then went into the
orchard
---------------
Desired Output
---------------
The red fox jumped over the brown fence of the red house
He then went into the orchard (11 Replies)
Hi,
I have a file such as:
---
>contig00001 length=35524 numreads=2944
gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA
CAGGCCGCGCGGCGTCGGCTGGCTGAG
>contig00002 length=4242 numreads=43423
ATGCCGAAGGTCCGCCTGGGGCTGG
CGCCGGGAGCATGTAGCG
---
I would like to concatenate the lines not starting with ">"... (9 Replies)
In Bash using AWK or sed I need to convert the following file:
...
numitem_tab0 =<p>1 KEYWORD</p><p>2 KEYWORD</p><p>3 KEYWORD</p><p>4 KEYWORD</p><p>5 KEYWORD</p>...<p>25 KEYWORD</p>
subitem_tab0 =<p></p><p></p>
...
numitem_tab6 =<p>1 KEYWORD</p><p>2 KEYWORD</p><p>3 KEYWORD</p><p>4 KEYWORD</p>... (2 Replies)
Dear all,
I would like to delete even lines starting with "N" together with their respective titles which are actually odd lines.
Below is the example of input file. I would like to remove line 8 and 12 together with its title line, i.e., line 7 and 11, respectively.... (2 Replies)
I have a large dataset with following structure;
C 0001 Carbon
D SAR001 methane
D SAR002 ethane
D SAR003 propane
D SAR004 butane
D SAR005 pentane
C 0002 Hydrogen
C 0003 Nitrogen
C 0004 Oxygen
D SAR011 ozone
D SAR012 super oxide
C 0005 Sulphur
D SAR013... (3 Replies)
Shell : bash
OS : RHEL 6.8
I have a file like below.
$ cat pattern.txt
hello
txt1
txt2
txt3
some other text
txt4
I want to remove all lines in this file except the ones starting with txt . How can I do this ? (4 Replies)
I have below code inside my awk script
if ( $0 ~ /SVC IN:/ )
{
svc_in=substr( $0,23 , 3);
if (msg_start == 1 && msg_end == 0)
{
msg_arr=$0;
}
}
else if ( $0 ~ /^SVC OUT:/ )
{
svc_out=substr( $0, 9, 3);
if (msg_start == 1 && msg_end == 0)
... (6 Replies)
Discussion started by: bhagya123
6 Replies
LEARN ABOUT REDHAT
qvboxlayout
QVBoxLayout(3qt)QVBoxLayout(3qt)NAME
QVBoxLayout - Lines up widgets vertically
SYNOPSIS
#include <qlayout.h>
Inherits QBoxLayout.
Public Members
QVBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )
QVBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )
QVBoxLayout ( int spacing = -1, const char * name = 0 )
~QVBoxLayout ()
DESCRIPTION
The QVBoxLayout class lines up widgets vertically.
This class is used to construct vertical box layout objects. See QBoxLayout for more details.
The simplest use of the class is like this:
QBoxLayout * l = new QVBoxLayout( widget );
l->addWidget( aWidget );
l->addWidget( anotherWidget );
<center>
[Image Omitted]
</center>
See also QHBoxLayout, QGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
MEMBER FUNCTION DOCUMENTATION QVBoxLayout::QVBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )
Constructs a new top-level vertical 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.
QVBoxLayout::QVBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )
Constructs a new vertical 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 QVBoxLayout will inherit its parent's
spacing().
QVBoxLayout::QVBoxLayout ( int spacing = -1, const char * name = 0 )
Constructs a new vertical 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 QVBoxLayout will inherit its parent's
spacing().
QVBoxLayout::~QVBoxLayout ()
Destroys this box layout.
The layout's widgets aren't destroyed.
SEE ALSO
http://doc.trolltech.com/qvboxlayout.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
(qvboxlayout.3qt) and the Qt version (3.1.1).
Trolltech AS 9 December 2002 QVBoxLayout(3qt)