Sponsored Content
Top Forums Shell Programming and Scripting Append transaction header lines to same transaction's detail lines Post 302430512 by summer_cherry on Friday 18th of June 2010 02:01:33 AM
Old 06-18-2010
perl

Code:
my $tmp;
while(<DATA>){
	chomp;
	if(/THEAD/){
		$tmp=$_;
		next;
	}
	elsif(/TDETL/){
		print $_," ",$tmp,"\n";
	}
}
__DATA__
FHEAD File1
THEAD TRANS1-blah
TDETL HI1
TDETL HI2
TDETL HI3
TTAIL TRANS1-blah
THEAD TRANS2-blah
TDETL HELLO1
TDETL HELLO2
TTAIL TRANS2-blah
FTAIL File1

This User Gave Thanks to summer_cherry For This Post:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

average transaction time

Hi all, I have large daily log file(s) that hold the times for requests and responses on different system requests. What I want to do is work out average transaction times for the day (one log = one day). The problem I'm having is figuring out how to skip rows, i've sorted the output by uniq... (2 Replies)
Discussion started by: nhatch
2 Replies

2. UNIX and Linux Applications

Got Errors while sending a transaction through ESB

We are getting below error when processing a transaction through ESB. I work for SOA admin and checked the JCA connection is working fine also code also working fine in other envs. An unhandled exception has been thrown in the ESB system. The exception reported is:... (1 Reply)
Discussion started by: KuldeepSinghTCS
1 Replies

3. Linux

YUM HANGS AT RUNNING TRANSACTION TEST

Hi When i trying to update using yum, hangs at Running transaction test. # yum update yum Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftp.oss.eznetsols.org * extras: ftp.oss.eznetsols.org * base: ftp.oss.eznetsols.org * updates:... (2 Replies)
Discussion started by: anil8103
2 Replies

4. Solaris

Concept of ZFS transaction semantics

HI, Can anyone explain me the concept behind ZFS transactional semantics (either a transaction is entirely commited or it is not)? so data and disk failures are reduced. (5 Replies)
Discussion started by: Revathi@1
5 Replies

5. UNIX for Dummies Questions & Answers

Rolling back SQL transaction

Can some one help me related to .sql file issue. I have a .sqlfile and tried to read the file thru unix. In the .sqlfile I have error rows as well and when error comes I dont want to proceed further and need to roll back all the transactions. sample .sql file below insert into test... (2 Replies)
Discussion started by: sri_aue
2 Replies

6. Shell Programming and Scripting

Process only files which have completed in transaction

Hi , I have a situation where I have to Process files ( move , edit or rename ) in a folder ..... This folder is a FTP folder and Files keep coming in when they are available ... So I should perform my actions on those which which completed transaction .. . Is there a way to identify a... (3 Replies)
Discussion started by: chillblue
3 Replies

7. Programming

Difference between BEGIN TRANSACTION & START TRANSACTION?

What's the difference between BEGIN TRANSACTION vs START TRANSACTION? Also goes for COMMIT TRANSACTION vs COMMIT? (0 Replies)
Discussion started by: dan139
0 Replies

8. AIX

Transaction based resources

How do I determine the resources needed based on volume of transactions. By resources I mean, the cores, memory etc. Is there a way to arrive at that value? (1 Reply)
Discussion started by: ggayathri
1 Replies
fastautils(1)					     FASTA format file manipulation utilities					     fastautils(1)

NAME
fastautils - FASTA format file manipulation utilities SYNOPSIS
fastachecksum [ options ] <input file> fastaclean fastaclip fastacomposition fastadiff fastaexplode fastafetch fastahardmask fastaindex fastalength fastanrdb fastaoverlap fastareformat fastaremove fastarevcomp fastasoftmask fastasort fastasplit fastasubseq fastatranslate fastavalidcds DESCRIPTION
These are utilities for the manipulation of FASTA format sequence databases which are distributed with the exonerate sequence alignment program. ENVIRONMENT
Not documented yet. EXAMPLES
fastalength sequence.fasta blah blah VERSION
This documentation accompanies version 2.2.0 of the exonerate package. AUTHOR
Guy St.C. Slater. <guy@ebi.ac.uk>. See the AUTHORS file accompanying the source code for a list of contributors. AVAILABILITY
This source code for the exonerate package is available under the terms of the GNU general public licence. Please see the file COPYING which was distrubuted with this package, or http://www.gnu.org/licenses/gpl.txt for details. This package has been developed as part of the ensembl project. Please see http://www.ensembl.org/ for more information. SEE ALSO
exonerate(1),e-PCR fastautils March 2003 fastautils(1)
All times are GMT -4. The time now is 02:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy