Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Adding to an array in an external file, and adding elements to it. Post 303032384 by ignatius on Friday 15th of March 2019 06:13:00 PM
Old 03-15-2019
This line right here:


Code:
 selection=barmenu(testarray,row,col,arraylength,width,menulength,3);

It obviously isn't the array that needs to be called.
 

10 More Discussions You Might Find Interesting

1. Solaris

adding existing disks to a 3510 array

I would like to extend a logical drive on our 3510. I have four unallocated disks which I would like to use for this purpose. The 3510 supports a Sun Cluster but for now all I wish to see is a "new" disk when I run format. I am a little familiar with the telnet/ssh session on the 3510 but am... (2 Replies)
Discussion started by: malcqv
2 Replies

2. Shell Programming and Scripting

Search array elements as file for a matching string

I would like to find a list of files in a directory less than 2 days old and put them into an array variable. And then search for each file in the array for a matching string say "Return-code= 0". If it matches, then display the array element with a message as "OK". Your help will be greatly... (1 Reply)
Discussion started by: mkbaral
1 Replies

3. Shell Programming and Scripting

Adding array element in KSH

All, I would like to add the first 10 elements of an array. Here is how I am doing it now (only included first few add ops): #!/usr/bin/ksh ###Grab the array values out of a file### TOTAL=`awk '/time/' /tmp/file.out | awk '{print $4}'` set -A times $TOTAL SUM=$((${times} + times... (3 Replies)
Discussion started by: Shoeless_Mike
3 Replies

4. Solaris

Adding external disk array to a live server

Hi all Ive got a v440 with an external T3 RAID in a dual bus configuration. I need to add an additional JBOD extension to the disk array via two VDCH cables. Now, can I do this as the server is live ? Can I just plug the two cables in, switch on the additional extension ? Will this cause... (1 Reply)
Discussion started by: sbk1972
1 Replies

5. Shell Programming and Scripting

Problem adding into an array field!!!

Hi, Kindly assist by analyzing the code below and suggest changes to achieve the required output. The input file: 01-010241800000 35000 MV010 02/03/09 0306 03060226 03 02-004103300000 470000 MV010 02/03/09 0301 03010276 03 The objective is to convert field No4. from dd/mm/yy to yyyymmdd... (5 Replies)
Discussion started by: talk2pawee
5 Replies

6. Shell Programming and Scripting

Adding new lines to a file + adding suffix to a pattern

I need some help with adding lines to file and substitute a pattern. Ok I have a file: #cat names.txt name: John Doe stationed: 1 name: Michael Sweets stationed: 41 . . . And would like to change it to: name: John Doe employed permanently stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies

7. Shell Programming and Scripting

Adding results of a find to an array

I'm trying to add the paths of all the xml files in certain directories to an array. I want to use the array later in my code. Anyway, for some reason this isn't working. Any help would be appreciated. Path_Counter=0 for result in "find * -name '*.xml'"; do XmlPath="$result" echo... (2 Replies)
Discussion started by: Fly_Moe
2 Replies

8. Shell Programming and Scripting

Adding an element to a bash array with a variable

Hello, I have a simple task and I am having some trouble with the syntax. I have a variable with an assigned value, CMD_STRING='-L 22 -s 0 -r -O -A i -N 100 -n' I would like to add that variable to an array. As far as I have been able to look up, the syntax should be something like, ... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

9. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies

10. Shell Programming and Scripting

Adding Two Array in shell script

Hi Experts, I've got this problem where I need to add two array in shell script such that that is an element is greater than 9 then it get further split into individual digit, something like below : Input :- array1=(2 6 8 9 10 12) array2=(5 4 6 8 12 14) Output :- array3=(7 1 0 1 4 1 7 2 2... (8 Replies)
Discussion started by: mukulverma2408
8 Replies
QTableSelection(3qt)													      QTableSelection(3qt)

NAME
QTableSelection - Access to a selected area in a QTable SYNOPSIS
#include <qtable.h> Public Members QTableSelection () QTableSelection ( int start_row, int start_col, int end_row, int end_col ) void init ( int row, int col ) void expandTo ( int row, int col ) bool operator== ( const QTableSelection & s ) const bool operator!= ( const QTableSelection & s ) const int topRow () const int bottomRow () const int leftCol () const int rightCol () const int anchorRow () const int anchorCol () const bool isActive () const DESCRIPTION
The QTableSelection class provides access to a selected area in a QTable. The selection is a rectangular set of cells in a QTable. One of the rectangle's cells is called the anchor cell; this is the cell that was selected first. The init() function sets the anchor and the selection rectangle to exactly this cell; the expandTo() function expands the selection rectangle to include additional cells. There are various access functions to find out about the area: anchorRow() and anchorCol() return the anchor's position; leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are part of the selection. A newly created QTableSelection is inactive -- isActive() returns FALSE. You must use init() and expandTo() to activate it. See also QTable, QTable::addSelection(), QTable::selection(), QTable::selectCells(), QTable::selectRow(), QTable::selectColumn(), and Advanced Widgets. MEMBER FUNCTION DOCUMENTATION
QTableSelection::QTableSelection () Creates an inactive selection. Use init() and expandTo() to activate it. QTableSelection::QTableSelection ( int start_row, int start_col, int end_row, int end_col ) Creates an active selection, starting at start_row and start_col, ending at end_row and end_col; int QTableSelection::anchorCol () const Returns the anchor column of the selection. See also anchorRow() and expandTo(). int QTableSelection::anchorRow () const Returns the anchor row of the selection. See also anchorCol() and expandTo(). int QTableSelection::bottomRow () const Returns the bottom row of the selection. See also topRow(), leftCol(), and rightCol(). void QTableSelection::expandTo ( int row, int col ) Expands the selection to include cell row, col. The new selection rectangle is the bounding rectangle of row, col and the previous selection rectangle. After calling this function the selection is active. If you haven't called init(), this function does nothing. See also init() and isActive(). void QTableSelection::init ( int row, int col ) Sets the selection anchor to cell row, col and the selection to only contain this cell. The selection is not active until expandTo() is called. To extend the selection to include additional cells, call expandTo(). See also isActive(). bool QTableSelection::isActive () const Returns whether the selection is active or not. A selection is active after init() and expandTo() have been called. int QTableSelection::leftCol () const Returns the left column of the selection. See also topRow(), bottomRow(), and rightCol(). bool QTableSelection::operator!= ( const QTableSelection & s ) const Returns TRUE if s does not include the same cells as the selection; otherwise returns FALSE. bool QTableSelection::operator== ( const QTableSelection & s ) const Returns TRUE if s includes the same cells as the selection; otherwise returns FALSE. int QTableSelection::rightCol () const Returns the right column of the selection. See also topRow(), bottomRow(), and leftCol(). int QTableSelection::topRow () const Returns the top row of the selection. See also bottomRow(), leftCol(), and rightCol(). SEE ALSO
http://doc.trolltech.com/qtableselection.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 (qtableselection.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QTableSelection(3qt)
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy