needle -filter

Peter Rice pmr at ebi.ac.uk
Tue Jun 10 16:02:16 UTC 2003


David Mathog wrote:

> Only the first character of that line, which is what I was
> referring to in my earlier post.  If the input uses getc()
> it can do an ungetc() at the second '>' and then exit.
> The next "firstfasta" should pick up the same '>'
> as its first character.  At least on Unix.  ungetc() isn't
> the most portable of functions - but all the OS's I know
> of allow it to be called at least once.  Just don't
> expect to be able to call it a thousand times sequentially.

... of course, I was carefully avoiding mention of GCG format which 
ruins any plans to use ungetc :-)

... and you can't seek back to the position in a pipe

Peter




More information about the EMBOSS mailing list