01-05-2009
Print Selection of Line between two Identifiers.
I have a following containing DATA in the following format:
[START1]
DATA....------
---------------
--------------
[END1]
DATA.....------
--------------------
------------------
[START1]
DATA....------
---------------
--------------
[END1]
I want to extract the selective DATA in between identifiers [START1] and [END1] including starting identifier i.e, [START1] as depicted below:
[START1]
DATA....------
---------------
--------------
[START1]
DATA....------
---------------
--------------
Please help me with this.Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions
1. file1 is only a few thousand lines at most and file2 is greater than 2 million
2. I need to... (7 Replies)
Discussion started by: gillesc_mac
7 Replies
2. Shell Programming and Scripting
Hi all,
I have 4 file and I want to find the common identifier in each file. For example:
FILE1
goat
door
bear
cat
FILE2
goat
moose
dog
cat
FILE3
goat
yak
tiger (6 Replies)
Discussion started by: phil_heath
6 Replies
3. Shell Programming and Scripting
Hi Unix gurus
Basically i am searching for the pattern and getting the line numbers of the grepped pattern. I am trying to print the series of lines from 7 lines before the grepped line number to the grepped line number.
I am trying to use the following code. but it is not working.
cat... (3 Replies)
Discussion started by: mohanm
3 Replies
4. Shell Programming and Scripting
Korn Shell in AIX 6.1
I want to print the below shown pipe (|) separated list line by line.
line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883
for i in line
do
echo "Hello $line "
done
I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies
5. Shell Programming and Scripting
cat fileanme.txt
custom1=, custom2=, userPulseId=3005, accountPolicyId=1, custom3=, custom4=, homeLocationId=0, i need to make the fields appear in next line based on identifier (,) ie comma
so output should read
cat fileanme.txt
custom1=,
custom2=,
userPulseId=3005,
... (8 Replies)
Discussion started by: vivek d r
8 Replies
6. Homework & Coursework Questions
Florida State University, Tallahassee, FL USA, Dr. Whalley, COP4342
1. The problem statement, all variables and given/known data:
Create a lex specification file that reads a C source program that ignores keywords and collects all identifiers (regular variable names) and also displays the line... (3 Replies)
Discussion started by: D2K
3 Replies
7. Shell Programming and Scripting
Hello,
I have below format log file,
Comparing csv_converted_files/2201/9747.1012H67126.5077292103609547345.csv and csv_converted_files/22019/97447.1012H67126.5077292103609547345.csv
Comparing csv_converted_files/2559/9447.1012H67126.5077292103609547345.csv and... (6 Replies)
Discussion started by: arvindshukla81
6 Replies
8. Shell Programming and Scripting
Hello,
I am looking for a specific situation in a text file. The conditions are,
> <CompoundName>
InChI=1S/C5H12NO2/c1-5(2)4-8-6(3)7/h5H,4H2,1-3H3/q+1
I am looking for cases where the line "> <CompoundName>" is followed by a line that contains the string "InChI=" without regard to... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
9. UNIX for Beginners Questions & Answers
hello
i am having a file having a matrix as the following
4.1 5.5 6.55
7.2 8.2 1.002
i am having around 1 lakh rows, now i need a program in which i show give min x and min y and min z values and as well as max x max y max z, the values between these minimun and maximum values should be... (1 Reply)
Discussion started by: charan pattabhi
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
i want to write a shell script read below file line by line and want to exclude the lines which contains empty value for MOUNTPOINT field.
i am using centos 7 Operating system.
want to read below file.
# cat /tmp/d5
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root"... (4 Replies)
Discussion started by: balu1234
4 Replies
LEARN ABOUT DEBIAN
math::tamuanova
Math::TamuAnova(3pm) User Contributed Perl Documentation Math::TamuAnova(3pm)
NAME
Math::TamuAnova - Perl extension for the tamuanova library
SYNOPSIS
use Math::TamuAnova;
DESCRIPTION
This module allows you to use the tamu-anova library from perl programs.
EXPORT
None by default.
Exportable constants
anova_fixed
anova_mixed
anova_random
Exportable functions
anova
anova_twoway
printanova
printanova_twoway
USE
$hash=Math::TamuAnova::anova(DATA[], FACTOR[], J);
DATA is an array of double, FACTOR an array of integer.
Factors must be within 1..J
DATA and FACTOR must have the same size.
$hash2=Math::TamuAnova::anova_twoway(DATA[], FACTORA[], FACTORB[], JA, JB, mode);
DATA is an array of double, FACTOR(A|B) arrays of integer.
Factors A must be within 1..JA, and Factors B within 1..JB
DATA, FACTORA and FACTORB must have the same size.
EXAMPLES
$res=Math::TamuAnova::anova( [88.60,73.20,91.40,68.00,75.20,63.00,53.90,
69.20,50.10,71.50,44.90,59.50,40.20,56.30,
38.70,31.00,39.60,45.30,25.20,22.70],
[1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4],
4);
Math::TamuAnova::printtable( $res );
$res=Math::TamuAnova::anova_twoway(
[6,10,11,13,15,14,22,12,15,19,18,31,18,9,12],
[1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2],
[1, 1, 1, 2, 2, 3, 3, 1, 1, 1, 1, 2, 3, 3, 3],
2,3,
&Math::TamuAnova::anova_fixed);
Math::TamuAnova::printtable_twoway( $res );
SEE ALSO
info tamu_anova
AUTHOR
Vincent Danjean, <Vincent.Danjean@ens-lyon.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Vincent Danjean
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2012-05-25 Math::TamuAnova(3pm)