hi ,
i have follwing strings in a text file
hello i am cool
hey i am cool
arrey i am cool
in all the above 3 i wanna retrieve cool.......for this i used
split(/ /)
but it takes into consideration only one space.......is there any regular expression to do the trcik?
... (7 Replies)
I have a script that has a counter in it, the output from the script puts the values in columns, and when the values are greater than 9 it moves the rest of the row over, hence displacing the columns. Is their something I can do to make these values fit in their respective column? I tried typing an... (1 Reply)
Is there a way to adjust spacing of a line using k shell?
e.g I have a file below
$ cat file1
AAA BBB CCC
A B C
AAAA BB CC
I want each word to be adjusted with spaces to have 10 character length like below:
AAA BBB CCC
A B C
AAAA BB CC
Any... (4 Replies)
Hi guys, I have this little code:
for directory in / $(echo $path | tr '/' ' ' )
do
cd $directory
echo "$(ls -ld | cut -c2-10 | sed 's/.\{3\}/& /' | sed 's/.\{7\}/& /' |
sed 's/.\{1\}/& /g')" " $directory"
done
The output of this will be showing the permissions with spaces so it will... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to join 3 files numerically according to ID(first column) with no comments. In the end i'll be something... (0 Replies)
Hi
I have a csv file in below format
First Line=1
Second Line=2
And the third Line=3
Now comes the fourth Line=4
I want to insert spaces so that the output would be
First Line=1
Second Line=2
And the third Line=3
Now comes the fourth Line=4
Can anyone help me do... (10 Replies)
I'm trying to combine text files without a space. So if i use the paste command
paste file1 file2 file3 > file4
the new file created has spacing between the contents of the once individual files. Is there some trick I can do with a delimiter that removes the spaces.. like paste -d'' or... (1 Reply)
Hi!
I need to change the spacing assigned to each number in a text file. I have an input file with 5 columns and 3 rows. Here, all numbers are separated by 1 space. I need to change this in such a way that the number in the first column has 6, the number in the second column has 5 and all other... (2 Replies)
here is my code and output, i just want to display it clearly to the users. how can I fix the spacing or put some headers like NAME, DEV id, Size, Meta
code:
symdg show $INS-${SNAP} | egrep "D-" | awk '{print $1,$3,$NF,$5}'
output:
D-arch 23C2 983040 (M)
D-db 0704 245760 (M)
D-undo 07DB... (12 Replies)
Hello,
I am running a script which sends an output as an email; I am having issues with the spacing being not uniform in the message. Snippet of the code and email message below:
if ] then echo "$Hostname\tMISSING\tHMCBackup" >> $BackupMsg
else if ] then echo... (12 Replies)
Discussion started by: hasn318
12 Replies
LEARN ABOUT CENTOS
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-2007 Trolltech ASA, 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.3.8).
Trolltech AS 2 February 2007 QVBoxLayout(3qt)