03-07-2008
position=1
#put the following in a loop
#cut -c stands for column
while [ $position -ge 8 ]
do
echo `cut -c$position`
position=`expr $position + 1`
done
10 More Discussions You Might Find Interesting
1. AIX
I've just started to explore NIM and I'm looking for additional information on how to set it up and configure it. I've read through the "NIM A-Z" and have many unanswered questions.
One question is how can I have the NIM server pull a mksysb of the clients and can I schedule this to happen... (1 Reply)
Discussion started by: scottsl
1 Replies
2. What is on Your Mind?
Hi,
I am a newbie to Unix, I was introduced to UNIX 8 months back during my Training, I was attracted to Unix as they give complete freedom. I would like to ask how can a OS Admin can go into development field of Unix. Currently I am working in a MNC in Backup- Storage Admin Domain I am... (1 Reply)
Discussion started by: sufi_431
1 Replies
3. UNIX for Advanced & Expert Users
Hi all,
I am trying to get the exception count daily from a log file which is more than 1 GB in size.
I am using loops which get the count of the exception and transaction. But i need to take this exception count for a time frame from 5.00 am to 5:00 pm.
I Think I can use to exact the... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies
4. HP-UX
Hello,
We've recently had a multiple hardrive failure in our legacy HP9000. Now the drives are repaired and the filesystems are recreated, I went to restore the last of the database tables from our dds3 backup, but cannot. Here's what's going on: BTW, I'm an absolute novice w/ HP-UX
The... (5 Replies)
Discussion started by: jastuart
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am new with updates in RHEL especially servers. The question is:
1. Do I need to register to RHEL in order for me to use the up2date?
2. For updates in RHEL need to use up2date, but what is the thing that I need to do before the patches? I mean what should I backup in case my patches... (0 Replies)
Discussion started by: flekzout
0 Replies
6. Shell Programming and Scripting
Hi ,
I have a txt file with contents like:
1234
2345
3456
7891
I need to write a script which takes input file as txt file..run a sql query for that number and place the output of query in another file..
select * from bus_event where acct_nbr='1234'( from input txt file)
the query... (20 Replies)
Discussion started by: Rajesh Putnala
20 Replies
7. AIX
I need some guidance on the differences in observations, not sure how significantly different are they.
Also, It would be nice to hear on the values and what the obvious tuning for performance missing.
Observation 1
ending vmstat -v 3948544 memory pages
ending vmstat -v ... (1 Reply)
Discussion started by: Snipper
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am trying to debug some KSH script and it has the nawk portion below. I just want to confirm whether I understand what it does correctly.
Example usage of the nawk line is run as below:
nawk '/^#/ {next}
$1~/^'testp.cfg'$|^'testp.cfg'\.testdb\.com\.ph$/ {
c=0
while... (1 Reply)
Discussion started by: newbie_01
1 Replies
9. Shell Programming and Scripting
Hey All,
I am newbie on scripting and need some guidance from all the experts here.
I am working on one project where I will check the status/health of around ten (10) solaris 10 servers.
I have one central server from where I have already setup the passwordless SFTP and setup the cron... (1 Reply)
Discussion started by: supercops
1 Replies
10. AIX
Hi There,
I am new to AIX. I am eager to learn the AIX System administration or if there is any other prerequisite before this. Please can anyone help me or guide how to start with AIX, what all courses and certifications do I need to do. I have basic knowledge of UNIX.
Please guide as I am... (3 Replies)
Discussion started by: rahulat302
3 Replies
LEARN ABOUT SUSE
genlib_copy_up_all_con
GENLIB_COPY_UP_ALL_CON.3(October 1, 1997) GENLIB_COPY_UP_ALL_CON.3(October 1, 1997)
NAME
GENLIB_COPY_UP_ALL_CON - copy all physical connectors of an instance face in the current figure
SYNOPSYS
#include <genlib.h>
void GENLIB_COPY_UP_ALL_CON(face, insname, concatenate)
char face, concatenate;
char *insname;
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
PARAMETERS
face Face of the instance
insname Name of the instance the connector belongs to
concatenate Indicates wheter or not to concatenate instance connectors names with instance name
DESCRIPTION
COPY_UP_ALL_CON copies all instance connectors of the face face of the placed instance called insname into the current layout. The con-
catenate argument may take two values:
YES then the resulting name of a connector in the current figure is the concatenation of the insname and the conname. It
warranties the unicity of name at the figure level, and is to be used most of the time.
NO implies a direct copy of the connector name. The user must take care of the unicity of connector name by itself.
Two behaviour are expected, depending on each of the instance connectors location regarding the abutment box of the
current figure.
Connector on the abutment box
The figure connector is place right over the instance connector. The single connector is duplicated.
Connector inside the abutment box
The instance connector face is computed in the figure, and then, the connector is duplicated on the given face, at the
right coordinates for this face. Then a wire is drawn between the instance connector and the figure connector in the
connector layer.
ERRORS
"GENLIB_COPY_UP_ALL_CON impossible : missing GENLIB_DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to place a connector inside it. you must call
DEF_PHFIG before any other layout action.
"*** genlib error *** GENLIB_COPY_UP_ALL_CON impossible : connector conname face face of instance insname, current figure doesn't exist"
No connector matches both the conname and the face arguments.
EXAMPLE
#include <genlib.h>
main()
{
/* Create a figure to work on */
GENLIB_DEF_PHFIG("cell");
.
.
GENLIB_PLACE_LEFT("gaer0_f", "insN", SYMXY);
.
.
GENLIB_DEF_AB(0L, 0L, 0L, 0L);
/* Copy all connectors */
GENLIB_COPY_UP_ALL_CON(NORTH, "insN", YES);
/* Save that on disk */
GENLIB_SAVE_PHFIG();
}
SEE ALSO
genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_COPY_UP_CON(3), GENLIB_COPY_UP_CON_FACE(3), GENLIB_PHCON(3), GEN-
LIB_THRU_CON_H(3), GENLIB_THRU_CON_V(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
PROCEDURAL GENERATION LANGUAGE
ASIM/LIP6 GENLIB_COPY_UP_ALL_CON.3(October 1, 1997)