06-02-2011
Instead of `seq ` $max_i` you could use {1..3} (if you are using the bash shell). The only downside is that you have to use the actual value as the max value and not a variable.
Alternatively, you could try to see if you have jot installed - it should be the Mac OS equivalent for seq.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Dudes,
I have a task to make a unix shell script that should search for a
specific TEXT in a file.If that TEXT is found, shell script should add
a comment statement before that TEXT line.
Ex : LINE 1 xxxxx
LINE 2 xxxx CALL xxxx
LINE 3 xxxx PERFORM UNTIL
if i... (1 Reply)
Discussion started by: kirrushna
1 Replies
2. Shell Programming and Scripting
I'm moving a list of files of some extension and I wish to output the moved filenames into a text file, I tried using the command below, but after all the files are moved, I got a blank file.
find /abc/temp -type f -mtime +365 \( -name "*.bak" -o -name "*.log" \) -exec mv -f {} /junk \; >>... (3 Replies)
Discussion started by: chengwei
3 Replies
3. Shell Programming and Scripting
Hi, all:
I've got two folders, folder A contains some image files (say, 100 files) in .jpg format;
folder B contains all description files (say, 500 files) in .txt format.
All image files in folder A are able to find their corresponding description files in folder B.
That is to say,... (3 Replies)
Discussion started by: jiapei100
3 Replies
4. Shell Programming and Scripting
I am currently writing a script to compare a file list created over an FTP connection to a local directory.
I have cleaned the FTP file list up so that I just have a raw list of filenames however due to the directory structure employed (both locally and on the ftp site) I need to prepend each line... (6 Replies)
Discussion started by: Dal
6 Replies
5. AIX
Hi,
We have a file called applcust.txt where we keep records of our customizations in the following format. We want to verify whether the file, which is in 3rd column in this file is there in another file called patch999999.log to find out if any of our customization has got overwritten by the... (2 Replies)
Discussion started by: sshah1001
2 Replies
6. Shell Programming and Scripting
Hi all,
I have little experience with Scripting so hoping someone may be able to help me or point me in the right direction.
I have a shell script which was outputting uncaught exceptions to a log file.
$JAVA_MAIN_CLASS > $LOGNAME 2>&1
What I want to be able to do is prepend a timestamp on... (8 Replies)
Discussion started by: MacAonghusa
8 Replies
7. Shell Programming and Scripting
Hi All
I've googled around for this and can't see a way of doing it.
I have a file that contains a number of records that are layed out something like the following.
/path/to/directory/that/contains/a/file/I/need/filename.pdf
The path itself can vary both in terms of the names and the... (7 Replies)
Discussion started by: Bashingaway
7 Replies
8. UNIX for Dummies Questions & Answers
I have a number of dat-files, such as abc.dat, def.dat etc, as follows:
2011-07-01 100.0
2011-07-02 101.0
2011-07-03 101.7
I want to prepend the file with the base file name; so for abc.dat it would result in the following:
abc 2011-07-01 100.0
abc 2011-07-02 101.0
abc 2011-07-03 ... (5 Replies)
Discussion started by: figaro
5 Replies
9. Shell Programming and Scripting
Hello Mates
I am trying to write a script, which appends and prepends the text in a file.
I tried testing with a small file and it worked fine.
but for the large file, the script is wiping the entire file and adds only the word to be appended in the file.
mv $file_name $file_name.bak
sed... (6 Replies)
Discussion started by: sathyaac
6 Replies
10. Shell Programming and Scripting
Entry level scripter. Any help appreciated.
for file in *; do rename '4321_' '' $file ; done
Doesn't work for files with spaces in between
FOr eg
4321_1004.dat is renamed to 1004.dat but
4321_1004 2008.dat stays the same (1 Reply)
Discussion started by: davnavin
1 Replies
LEARN ABOUT DEBIAN
bio::seqio::kegg
Bio::SeqIO::kegg(3pm) User Contributed Perl Documentation Bio::SeqIO::kegg(3pm)
NAME
Bio::SeqIO::kegg - KEGG sequence input/output stream
SYNOPSIS
# It is probably best not to use this object directly, but
# rather go through the SeqIO handler system. Go:
use Bio::SeqIO;
$stream = Bio::SeqIO->new(-file => $filename, -format => 'KEGG');
while ( my $seq = $stream->next_seq() ) {
# do something with $seq
}
DESCRIPTION
This class transforms KEGG gene records into Bio::Seq objects.
Mapping of record properties to object properties
This section is supposed to document which sections and properties of a KEGG databank record end up where in the Bioperl object model. It
is far from complete and presently focuses only on those mappings which may be non-obvious. $seq in the text refers to the
Bio::Seq::RichSeqI implementing object returned by the parser for each record.
'ENTRY'
$seq->primary_id
'NAME'
$seq->display_id
'DEFINITION'
$seq->annotation->get_Annotations('description');
'ORTHOLOG'
grep {$_->database eq 'KO'} $seq->annotation->get_Annotations('dblink')
'CLASS'
grep {$_->database eq 'PATH'}
$seq->annotation->get_Annotations('dblink')
'POSITION'
FIXME, NOT IMPLEMENTED
'PATHWAY'
for my $pathway ( $seq->annotation->get_Annotations('pathway') ) {
#
}
'DBLINKS'
$seq->annotation->get_Annotations('dblink')
'CODON_USAGE'
FIXME, NOT IMPLEMENTED
'AASEQ'
$seq->translate->seq
'NTSEQ'
$seq-E<gt>seq
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:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR - Allen Day
Email allenday@ucla.edu
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
next_seq
Title : next_seq
Usage : $seq = $stream->next_seq()
Function: returns the next sequence in the stream
Returns : Bio::Seq::RichSeq object
Args :
write_seq
Title : write_seq
Note : write_seq() is not implemented for KEGG format output.
perl v5.14.2 2012-03-02 Bio::SeqIO::kegg(3pm)