Sponsored Content
Top Forums Shell Programming and Scripting How to check if the file DOES NOT have EOF Post 302076143 by jim mcnamara on Friday 9th of June 2006 06:20:22 AM
Old 06-09-2006
Windows text files have an EOF marker - ASCII 26.

UNIX files do not have an EOF marker like that. The filesystem keeps track of the length of the file. What problem are you trying to fix?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Script to check for a file, check for 2hrs. then quit

I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit. Logically, I'm looking for the best way to approach this Thanks for any assistance in advance. Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 Replies

2. Shell Programming and Scripting

Check EOF in shell script

Hi, I need to check whether one file has EOF or not. There's one daemon in our system, which will pick the files FTPed to us. However, sometimes the daemon picks the file before FTP is finished. So I'm planning to add some checking of EOF on the FTPed files in the shell script. Could... (8 Replies)
Discussion started by: ideazhcy
8 Replies

3. Shell Programming and Scripting

"unexpected end of file" when Iīm use EOF inside block if

I have a trouble in my script when i use EOF inside block if. If i use EOF whitout block if I donīt have problem. Guys any ideas? Sorry for my terrible English. #!/bin/sh set -xv HOST='ftp.fiction.com.br' USER='fictionuser' PASS='fictionpass' FILE='ftpteste.txt' busca=`find... (4 Replies)
Discussion started by: ricardo.ludwig
4 Replies

4. Shell Programming and Scripting

confused with << EOF EOF

Hi friends , I am confused with << EOF EOF Most of the cases I found sqlplus $db_conn_str << EOF some sql staments EOF another exapmle is #!/bin/sh echo -n 'what is the value? ' read value sed 's/XXX/'$value'/' <<EOF The value is XXX EOF (1 Reply)
Discussion started by: imipsita.rath
1 Replies

5. Shell Programming and Scripting

eof in data file

Hi, How to detect eof character in a data file? I am reading a data file generated from UNIX. I use java scanner, the scanner's hasNextLine() returns false in the middle of the file. I suspect there is a eof in the middle of the data file. Does anybody know how to check if a file contains eof... (1 Reply)
Discussion started by: redwing
1 Replies

6. Shell Programming and Scripting

remove last characters after %EOF (pdf binary file)

Hi, I want to know how I can remove the last characters of ANY pdf file. I read it under "od" in the command shell to see which were the last characters: $od corruptedfile.pdf -c When I see the file, I need to keep only the last characters, or "end of the file": %EOF (obviously keeping all... (1 Reply)
Discussion started by: diegugawa
1 Replies

7. UNIX for Advanced & Expert Users

Check EOF char in Unix. OR To check file has been received completely from a remote system

Advance Thanks. (1) I would like to know any unix/Linux command to check EOF char in a file. (2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Discussion started by: alexalex1
5 Replies

8. Shell Programming and Scripting

EOF Usage - line 56: syntax error: unexpected end of file

Below is a test script I'm writing in the process of learning to write script. When I try to run it I get an unexpected end of file error on line 56. Thoughts? SCRIPT: #!/bin/bash # system_page - A script to produce a system information HTML file ##### Constants TITLE="My System... (1 Reply)
Discussion started by: mpercy725
1 Replies

9. UNIX for Dummies Questions & Answers

Match EOF on newline in a file

Hi, i have a file where the end-of-file might be at the end of of a valid text line or on a new line case a) p q r s t u <eof> case b) p q r s t u <eof> case c) p q r s t u <no data, only carriage return> <eof> I have a requirement where <eof> line should not be read if it's... (3 Replies)
Discussion started by: ysrini
3 Replies

10. Shell Programming and Scripting

EOF of file

Hi, I ve a file with name "check" in this file "check" has two lines with contents now how to read these files line by line.. i used the code But these doesnt stop with two lines.. So how to set condition that only two lines be read and the program should stop its execution.. Please... (5 Replies)
Discussion started by: Priya Amaresh
5 Replies
Bio::Map::OrderedPositionWithDistance(3pm)		User Contributed Perl Documentation		Bio::Map::OrderedPositionWithDistance(3pm)

NAME
Bio::Map::OrderedPositionWithDistance - Abstracts the notion of a member of an ordered list of markers. Each marker is a certain distance from the one in the ordered list before it. SYNOPSIS
use Bio::Map::OrderedPositionWithDistance; # the first marker in the sequence my $position = Bio::Map::OrderedPositionWithDistance->new(-positions => 1, -distance => 22.3 ); # the second marker in the sequence, 15.6 units from the fist one my $position2 = Bio::Map::OrderedPositionWithDistance->new(-positions => 2, -distance => 15.6 ); # the third marker in the sequence, coincidental with the second # marker my $position3 = Bio::Map::OrderedPositionWithDistance->new(-positions => 3, -distance => 0 ); DESCRIPTION
This object is an implementation of the PositionI interface and the Position object handles the specific values of a position. OrderedPositionWithDistance is intended to be slightly more specific then Position but only specific enough for a parser from the MarkerIO subsystem to create and then pass to a client application to bless into the proper type. For an example of how this is intended to work, see the Mapmaker.pm. No units are assumed here - units are handled by context of which Map a position is placed in. Se Bio::Map::Position for additional information. 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/ AUTHOR - Chad Matsalla Email bioinformatics1@dieselwurks.com CONTRIBUTORS
Lincoln Stein, lstein@cshl.org Heikki Lehvaslaiho, heikki-at-bioperl-dot-org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ new Title : new Usage : my $obj = Bio::Map::OrderedPositionWithDistance->new(); Function: Builds a new Bio::Map::OrderedPositionWithDistance object Returns : Bio::Map::OrderedPositionWithDistance Args : -positions - Should be a single value representing the order of this marker within the list of markers -distance - The distance this marker is from the marker before it. 0 reflects coincidentality. distance($new_distance) Title : distance($new_distance) Usage : $position->distance(new_distance) _or_ $position->distance() Function: get/set the distance of this position from the previous marker Returns : A scalar representing the current distance for this position. Args : If $new_distance is provided the distance of this Position will be set to $new_distance perl v5.14.2 2012-03-02 Bio::Map::OrderedPositionWithDistance(3pm)
All times are GMT -4. The time now is 03:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy