Sponsored Content
Top Forums UNIX for Dummies Questions & Answers are Associative Arrays possible in UNIX? Post 77480 by yongho on Friday 8th of July 2005 04:58:26 PM
Old 07-08-2005
oh..

I see. That's very useful hmm.

Is the value of myArr[1] the same value as myArr[01]?
or myArr[0] same as myArr[00] ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Arrays in unix

I have a Main shell script file. In that the below lines(7) is spooled in Oracle & written to a file say temp.out INSTANCE_N ---------- undefined PROACT1 REPCAT1 PROACT2 REPCAT2 I want to ignore the first 3 lines & put the rest 4 lines PROACT1..REPCAT2 into the arrays. So that i can use... (2 Replies)
Discussion started by: dreams5617
2 Replies

2. UNIX for Dummies Questions & Answers

Unable to understand associative nature of awk arrays

About associative nature of awk arrays i'm still confused, not able to understand yet how array element can be accessed based on a string, I got one example at gawk manual to illustrate associative nature of awk arrays, it goes here: Codeawk ' # Print list of word frequencies { for (i = 1;... (3 Replies)
Discussion started by: nervous
3 Replies

3. Shell Programming and Scripting

Associative arrays

Hi all, #!/usr/dt/bin/dtksh typeset -A wavelength wavelength=650 wavelength=590 wavelength=510 wavelength=475 wavelength=445 wavelength=400 I have created an associative array like the one above. Now I am trying to print the values If i give print ${wavelength} it is... (4 Replies)
Discussion started by: prasperl
4 Replies

4. Shell Programming and Scripting

2d arrays in unix

hi everybody can anyone help me with usage of 2 dimensional arrays in unix. please provide a suitable example for accessing individual elements as well as all elements. Thanks (2 Replies)
Discussion started by: jpriyank
2 Replies

5. UNIX for Dummies Questions & Answers

Arrays in UNIX

Hi there, I have a small piece of code i=1 Number=10 while do echo "$i" Check=`cmd to give to me file name with path i=`expr ${i} + 1` done when i do in a loop echo "$Check"---------Unable to display, the values. ... (5 Replies)
Discussion started by: Naveen_5960
5 Replies

6. Shell Programming and Scripting

associative arrays?

Hello, i'm writing a little script that checks a .txt file for a specific ID that came after 9:10 am which outputs it's data to a file LateUsers.txt once done , it should mention the following: Number of late users Number of unique late users Over all late users percentage number of... (0 Replies)
Discussion started by: rollyah
0 Replies

7. UNIX for Dummies Questions & Answers

Arrays in unix

hi all, is there any method to declare each line of a text file to array variable. my text file is: 123 222 333 so, a=123 a=222 a=333 can anyone help me out pls... thanks in advance, Arun Manas:b: (4 Replies)
Discussion started by: arunmanas
4 Replies

8. UNIX for Dummies Questions & Answers

Using associative arrays with an if statement

I have this piece of code. The first if statement is not working, however the second if statement is working fine. I have set a value for Srcs to be file.srcs and want to print it. If no value for Rcvs is set, I get the print statement correctly hasValue="file.srcs" if ${hasValue}; then ... (0 Replies)
Discussion started by: kristinu
0 Replies

9. Shell Programming and Scripting

Improving code by using associative arrays

I have the following code, and I am changing it to #!/bin/bash hasArgumentCModInfile=0 hasArgumentSrcsInfile=0 hasArgumentRcvsInfile=0 OLDIFS="$IFS" IFS="|=" # IFS controls splitting. Split on "|" and "=", not whitespace. set -- $* # Set the positional... (3 Replies)
Discussion started by: kristinu
3 Replies

10. Shell Programming and Scripting

Associative arrays awk

Hi, I have the following dataset. A 2 1 272 A 2 2 333 A 2 3 222 A 3 1 222 A 3 2 11 B 1 1 112 B 1 2 998 B 2 1 667 C 1 1 887 C 1 2 887 C 2 1 998 I need to have an associate array based on the first column and generate a auto generated number column in the last column. Needed output:... (2 Replies)
Discussion started by: mitt
2 Replies
Bio::Tools::Run::Genemark(3pm)				User Contributed Perl Documentation			    Bio::Tools::Run::Genemark(3pm)

NAME
Bio::Tools::Run::Genemark - Wrapper for local execution of the GeneMark family of programs. SYNOPSIS
# GeneMark.hmm (prokaryotic) my $factory = Bio::Tools::Run::Genemark->new('-program' => 'gmhmmp', '-m' => 'model.icm'); # Pass the factory Bio::Seq objects # returns a Bio::Tools::Genemark object my $genemark = $factory->run($seq); DESCRIPTION
Wrapper module for the GeneMark family of programs. Should work with all flavors of GeneMark.hmm at least, although only the prokaryotic version has been tested. General information about GeneMark is available at <http://exon.gatech.edu/GeneMark/>. Contact information for licensing inquiries is available at: <http://opal.biology.gatech.edu/GeneMark/contact.html> Note that GeneMark.hmm (prokaryotic at least) will only process the first sequence in a fasta file (if you run() more than one sequence at a time, only the first will be processed). FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: http://redmine.open-bio.org/projects/bioperl/ AUTHOR - Mark Johnson Email: mjohnson-at-watson-dot-wustl-dot-edu APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ program_name Title : program_name Usage : $factory>program_name() Function: gets/sets the program name Returns: string Args : string program_dir Title : program_dir Usage : $factory->program_dir() Function: gets/sets the program dir Returns: string Args : string new Title : new Usage : $genemark->new(@params) Function: creates a new Genemark factory Returns: Bio::Tools::Run::Genemark Args : run Title : run Usage : $obj->run($seq_file) Function: Runs Genemark Returns : A Bio::Tools::Genemark object Args : An array of Bio::PrimarySeqI objects _run Title : _run Usage : $obj->_run() Function: Internal(not to be used directly) Returns : An instance of Bio::Tools::Genemark Args : file name, sequence identifier (optional) _write_seq_file Title : _write_seq_file Usage : obj->_write_seq_file($seq) or obj->_write_seq_file(@seq) Function: Internal(not to be used directly) Returns : Name of a temp file containing program output Args : One or more Bio::PrimarySeqI objects perl v5.12.3 2011-06-18 Bio::Tools::Run::Genemark(3pm)
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy