Sponsored Content
Full Discussion: Shell Script Incremental
Top Forums Shell Programming and Scripting Shell Script Incremental Post 302510007 by kurumi on Friday 1st of April 2011 10:07:54 AM
Old 04-01-2011
Code:
$ num=10 #user input
$ ruby -e 'BEGIN{c=1;s=File.open("file").read};1.upto('$num'){|x| print s.gsub(/^>Seq/,">Seq#{c}");c+=1 }'
>Seq1
ATGCGTA.......
>Seq2
ATGCGTA.......
>Seq3
ATGCGTA.......
>Seq4
ATGCGTA.......
>Seq5
ATGCGTA.......
>Seq6
ATGCGTA.......
>Seq7
ATGCGTA.......
>Seq8
ATGCGTA.......
>Seq9
ATGCGTA.......
>Seq10
ATGCGTA.......

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

incremental backup

Hi All.. i am trying to write a script which will give the incremental tar backup of all files with latest timestam. i tried with find -mmin -2 but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command. so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies

2. Shell Programming and Scripting

[bash] Simple backup (cp) script but incremental

Hi all, I would need a rather simple bash backup script that loops throught the (local) users and for each users backs up (cp!) its /home/username folder. About the functionalities: The script has to run every 2 hours (that's cron, so don't mind about that) and the files should be copied to... (12 Replies)
Discussion started by: laurens
12 Replies

3. Shell Programming and Scripting

Incremental backup

Hi, I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file. I have the following, but it doesn't backup the inside files of the directory. #!/bin/bash tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies

4. UNIX for Dummies Questions & Answers

incremental by 1

let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84. i=000002080 TOT=$(echo "scale=9; $i + 1" | bc) echo $TOT it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies

5. Windows & DOS: Issues & Discussions

Incremental Backup

I have a folder /root/test in a centos 5.3 system. I want to take an incremental backup of the contents of the folder in the C:\Downloads folder of a windows system present in the same lan as the linux system. What are the ways of executing this plan? Kindly help (0 Replies)
Discussion started by: proactiveaditya
0 Replies

6. Shell Programming and Scripting

Script for incremental file

Hi , I have incremental file FILE1 which locate in directory /asd/ This directory contains log files whose name entries goes in FILE1 how to make shell scripts for following condition shell script executes on day1 FILE1 entry ----> 1.log ... (3 Replies)
Discussion started by: kaushik02018
3 Replies

7. Shell Programming and Scripting

FULL or INCREMENTAL ???

Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP. • find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive • touch /backups/.backup_reference • tar... (1 Reply)
Discussion started by: bender-alex
1 Replies

8. Shell Programming and Scripting

Incremental numbering?

Would it be possible for a script to duplicate a file and incrementally number it? File in: XXX_007_0580_xxxx_v0016.aep File out: XXX_007_0580_xxxx_v0017.aep If someone knows of a way I'd love to see it. Thanks! (7 Replies)
Discussion started by: scribling
7 Replies

9. UNIX for Beginners Questions & Answers

Incremental logic

Hi Guys, am trying to write logic to do incremental value using linux Example: a=00.00.00.01 My b should be like this b=00.00.00.02 and when it reaches 99 my b should look like this b=00.00.01.99 Appreciate your help guys Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies
Bio::SeqIO::largefasta(3pm)				User Contributed Perl Documentation			       Bio::SeqIO::largefasta(3pm)

NAME
Bio::SeqIO::largefasta - method i/o on very large fasta sequence files SYNOPSIS
Do not use this module directly. Use it via the Bio::SeqIO class. DESCRIPTION
This object can transform Bio::Seq objects to and from fasta flat file databases. This module handles very large sequence files by using the Bio::Seq::LargePrimarySeq module to store all the sequence data in a file. This can be a problem if you have limited disk space on your computer because this will effectively cause 2 copies of the sequence file to reside on disk for the life of the Bio::Seq::LargePrimarySeq object. The default location for this is specified by the File::Spec->tmpdir routine which is usually /tmp on UNIX. If a sequence file is larger than the swap space (capacity of the /tmp dir) this could cause problems for the machine. It is possible to set the directory where the temporary file is located by adding the following line to your code BEFORE calling next_seq. See Bio::Seq::LargePrimarySeq for more information. $Bio::Seq::LargePrimarySeq::DEFAULT_TEMP_DIR = 'newdir'; 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/ AUTHORS - Jason Stajich Email: jason@bioperl.org 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 : A Bio::Seq::LargePrimarySeq object Args : NONE write_seq Title : write_seq Usage : $stream->write_seq(@seq) Function: writes the $seq object into the stream Returns : 1 for success and 0 for error Args : Bio::Seq object perl v5.14.2 2012-03-02 Bio::SeqIO::largefasta(3pm)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy