06-08-2004
I think my previous post did not receive any reply as it needs more clarification...
My input file looks as attcahed
=======================================================================
Record: 24950188 Version: 2 Timestamp: Mon Jun 7 15:00:06 2004
Primary (Reporting) Cell: 30 Sector: 3 Carrier: 1 Ref: yes Event: 46988
Missing Pilot: Keep: 1 PN-Phase: 0x0191 Strength: 25
Secondary Sector Information:
Slot 1: Keep: 1 Pn_offset: 72 Strength: 26 Ref: no
=======================================================================
Record: 24950189 Version: 2 Timestamp: Mon Jun 7 15:00:06 2004
Primary (Reporting) Cell: 30 Sector: 3 Carrier: 2 Ref: no Event: 46989
Missing Pilot: Keep: 1 PN-Phase: 0x7456 Strength: 26
Secondary Sector Information:
Slot 1: Keep: 1 Pn_offset: 357 Strength: 28 Ref: yes
Slot 2: Keep: 1 Pn_offset: 393 Strength: 29 Ref: no
=======================================================================
Record: 24950190 Version: 2 Timestamp: Mon Jun 7 15:00:06 2004
Primary (Reporting) Cell: 30 Sector: 3 Carrier: 2 Ref: no Event: 46990
Missing Pilot: Keep: 1 PN-Phase: 0x7456 Strength: 25
Secondary Sector Information:
Slot 1: Keep: 1 Pn_offset: 357 Strength: 27 Ref: yes
Slot 2: Keep: 1 Pn_offset: 393 Strength: 30 Ref: no
=======================================================================
Record: 24950191 Version: 2 Timestamp: Mon Jun 7 15:00:06 2004
Primary (Reporting) Cell: 30 Sector: 3 Carrier: 2 Ref: no Event: 46991
Missing Pilot: Keep: 1 PN-Phase: 0x7456 Strength: 22
Secondary Sector Information:
Slot 1: Keep: 1 Pn_offset: 357 Strength: 27 Ref: yes
Slot 2: Keep: 1 Pn_offset: 393 Strength: 32 Ref: no
=======================================================================
...........................
what my code is attempting to do is.....
If in the second line of every record the Ref:no is set then i need to pick up the Pn_offset: value for the next line where Ref: yes is set.
Ref:no Ref:yes Pn_offset:
Now it 's alittle bit more clear i hope.....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
2. Shell Programming and Scripting
I am getting this error:
awk: cmd. line:1: BEGIN {print "Userid Shell" }
awk: cmd. line:1: ^ syntax errorBased on this script:
#!/bin/bash
awk -F":" \
'{
BEGIN {print "Userid Shell" }
loginname=$1
optionalpass=$2
numericuserid=$3
numericgroupid=$4
username=$5
userhomedir=$6... (1 Reply)
Discussion started by: holocene
1 Replies
3. Shell Programming and Scripting
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies
4. Shell Programming and Scripting
Hi Friends,
the below script has been through the errors in sun solaris.
awk '/%s/{f=0 ;n++; print >(file="OUT_" n); close("OUT_" n-1)} f{ print > file}; /%s/{f=1}' $BASE_DIR/concat.TXT
awk: syntax error near line 1
awk: bailing out near line 1
And
ls $MERGE_DIR/*.R | awk '
{
... (2 Replies)
Discussion started by: krbala1985
2 Replies
5. Shell Programming and Scripting
Hi,
I run an awk script and I got the error attached below:
here are the lines that the compiler point to as an error:
duration = timeEnd1-timeBegin1;
print "Transmission: type of traffic " flow1 ;
print - Total transmitted bits = totalBits1 bits;
print - duration = ... (2 Replies)
Discussion started by: ENG_MOHD
2 Replies
6. Shell Programming and Scripting
STRING1=JAVA
CONTENTS=$(awk -v x="$STRING1" '$0 ~ x { print ll } { ll = $0}' $LOGFILE | tail -150 | egrep "Jan |Feb |Mar |Apr |May |Jun |Jul |Aug |Sep |Oct |Nov |Dec " | cut -c6-1000 | tail -1)
When I run the above from a script, i get the following errors:
syntax error at -e line 1,... (1 Reply)
Discussion started by: SkySmart
1 Replies
7. Shell Programming and Scripting
I've found this script which seems very promising to solve my issue:
To search and replace many different database passwords in many different (.php, .pl, .cgi, etc.) files across my filesystem.
The passwords may or may not be contained within quotes, single quotes, etc.
#!/bin/bash... (4 Replies)
Discussion started by: spacegoose
4 Replies
8. Shell Programming and Scripting
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Discussion started by: Sudhakar333
10 Replies
9. Shell Programming and Scripting
Hello Team,
I am using below awk code in the script
ssh -o ConnectTimeout=15 -n -l USER SERVER awk -F'\;' '{ if ( $3 == '-' && $1 ~ // ) print }' *20130706*
but its giving error as
awk: syntax error near line 1
awk: illegal statement near line 1
Please help.
... (6 Replies)
Discussion started by: skhichi
6 Replies
10. Shell Programming and Scripting
Hello im new here... Im trying to read file and create folders from words in it but i get this for loop error
awk : line 3 : syntax error at or near for
my code is..
#!/bin/bash
begin
for (( i=1;i<=5;i++));
do
awk -v i=$i $0 { print $i }
mkdir $i
done
{print $i}
end {}
i have... (7 Replies)
Discussion started by: boxstep
7 Replies
LEARN ABOUT DEBIAN
bio::biblio::ref
Bio::Biblio::Ref(3pm) User Contributed Perl Documentation Bio::Biblio::Ref(3pm)
NAME
Bio::Biblio::Ref - Representation of a bibliographic reference
SYNOPSIS
$obj = Bio::Biblio::Ref->new(-type => 'Letter',
-title => 'Onegin to Tatiana');
#--- OR ---
$obj = Bio::Biblio::Ref->new();
$obj->type ('Letter');
DESCRIPTION
A storage object for a general bibliographic reference (a citation). See its place in the class hierarchy in
http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
Attributes
The following attributes are specific to this class, and they are inherited by all citation types.
author_list_complete values: 'Y' (default) or 'N'
authors type: array ref of Bio::Biblio::Provider's
cross_references type: array ref of Bio::Annotation::DBLink's
cross_references_list_complete values: 'Y' (default) or 'N'
abstract
abstract_language
abstract_type
codes type: hash ref
contributors type: array ref of Bio::Biblio::Provider's
date
date_completed
date_created
date_revised
format
identifier
keywords
language
last_modified_date
publisher type: Bio::Biblio::Provider
repository_subset
rights
spatial_location
subject_headings type: hash ref
subject_headings_source
temporal_period
title
toc
toc_type
type
SEE ALSO
o OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
o Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
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 the
Bioperl mailing list. 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 of the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHORS
Heikki Lehvaslaiho (heikki-at-bioperl-dot-org), Martin Senger (senger@ebi.ac.uk)
COPYRIGHT
Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER
This software is provided "as is" without warranty of any kind.
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with a _
add_cross_reference
Usage : $self->add_cross_reference
(Bio::Annotation::DBLink->new(-database => 'EMBL',
-primary_id => 'V00808');
Function: adding a link to a database entry
Returns : new value of 'cross_references'
Args : an object of type Bio::Annotation::DBLink
add_author
Usage : $self->add_author (Bio::Biblio::Person->new(-lastname => 'Novak');
Function: adding an author to a list of authors
Returns : new value of 'authors' (a full list)
Args : an object of type Bio::Biblio::Provider
add_contributor
Usage : $self->add_contributor (Bio::Biblio::Person->new(-lastname => 'Novak');
Function: adding a contributor to a list of contributors
Returns : new value of 'contributors' (a full list)
Args : an object of type Bio::Biblio::Provider
perl v5.14.2 2012-03-02 Bio::Biblio::Ref(3pm)