I am trying to search a vector for something, and it I find it, do something.
I have this so far,
The if(path_iterator == check_path.end()) line isn't kosher. If I remember how find_if works, you send the third argument to a function that returns a bool and find_if returns the first value where the bool function returns true. True in this context would mean that the value is already in the vector, so it seems like the bool function has to do the heavy lifting here. I'm not sure what the bool function should look like and why I can just use find and have it return an iterator to the position of anything that matches current_neighbor.
I tried that,
but this doesn't work either. If I print *path_iterator, it prints as 0 when the vertex isn't found in the vector, but I can't seem to evaluate the iterator that way.
HI All,
I am having a bit of trouble using the find command in my shell (korn) script.
I was hoping someone could help me.
I am trying to build up a dynamic find command based on some parameters.
When I execute the command I get the following error:
find: incomplete statement
I have... (6 Replies)
Hi all,
Have the following snippet of code that I'm having trouble trying to work ...
The snippet of code is running on our Production Server and the intent is to copy the second most recent IDE file across from the Development Server.
I have the following files defined in $DEVLOC ...... (4 Replies)
Hi,
Iam having a strange problem, wandering if soneone can throw some lights.
I have statement
find . -maxdepth 1 -name 'File1*.tsv' -mtime +1 -print
I expect the above statement to print the files older than 1 day or 24 hrs,
however it doesn't work that way. When issue above command,... (2 Replies)
When I enter the command below grep appears to be returning a file it shouldn't.
find . -name "*.*" -exec grep "testing" {} /dev/null \;
.:ops3Mailfile
./SSI.ksh: # create TECHOUT dummy for test for testing purposes
./ftprimi1.ksh:# before running job in prod... change FTP to... (1 Reply)
Hi All,
I am using following find command to delete the records older than 7 days but getting missing conjuction error.Kindly suggest:
The command is:
find <complete_dir_path> \(! -name usr -prune \) -type f -name "*.txt" -mtime +6 -print | xargs rm (11 Replies)
I'm trying to display the full file name (including the full path) and file size of all files whose name (excluding the path) is longer than 10 characters.
I came up with find path -type f -name ".{10, }" -printf "%s %p\n", but I'm getting a "find: path: No such file or directory". What's wrong... (2 Replies)
for index in `find /root -name *.jar | grep "/lib"`; do echo "$index"; done
sometimes its throwing error saying
find: paths must precede expression
Usage: find
some1 suggested me that :
Code:
for index in `find /technologies -name '*.jar' | grep "/lib"`
do
echo "$index"... (2 Replies)
Hi
I want to find files with size +10000M and specified directorys except
when i use more than one `-name` acton is fail
I try -a (and) and -o (-or) but results fail :(
find . \( -name ./oracle* -prune -o -name "*arc*" -prune -o -name "*oracle*" -prune -o -size +10000k \) -exec ls -lh {}... (7 Replies)
Hello Guys ,
I am trying to run below find command in one of my SH script on a HP UX machine.
find /tmp -type f -name "MGCA*.log" -prune -exec rm -f {} \; 2>&1
I want this to check my tmp directory and delete MGCA log files .But below error message is printed on Promt :-
find: cannot... (2 Replies)
Hello,
I have trouble using the find command (I am working on Mac OSX).
for i in *.pdf
do
if find . -name "EV"
then
mv "$i" E-test.pdf
elif find . -name "GV"
then
mv "$i" G-test.pdf
else
mv "$i" test.pdf
fi
done
As to the use of "$i": unfortunately, the filenames... (14 Replies)
Discussion started by: tempestas
14 Replies
LEARN ABOUT DEBIAN
vecscreen
VECSCREEN(1) NCBI Tools User's Manual VECSCREEN(1)NAME
vecscreen - find nucleic acid segments of possible vector origin
SYNOPSIS
vecscreen [-] [-d str] [-f N] [-i filename] [-o filename]
DESCRIPTION
vecscreen is a system for quickly identifying segments of a nucleic acid sequence that may be of vector origin. NCBI developed vecscreen to
minimize the incidence and impact of vector contamination in public sequence databases. GenBank Annotation Staff use vecscreen to verify
that sequences submitted for inclusion in the database are free from contaminating vector sequence. Any sequence can be screened for vector
contamination using vecscreen.
vecscreen searches a query for segments that match any sequence in a specialized non-redundant vector database (UniVec). The search uses
BLAST with parameters preset for optimal detection of vector contamination. Those segments of the query that match vector sequences are
categorized according to the strength of the match, and their locations are displayed (see example positive result).
vecscreen is designed to quickly check a nucleic acid sequence for the presence of vector contamination and to show which segments within
the sequence may be of vector origin. Although a vecscreen search against UniVec will not identify the vector that is the most likely
source of the contamination, this can usually be deduced from the cloning history of the sequenced DNA.
OPTIONS
A summary of options is included below.
- Print usage message
-d str Database (default = UniVec)
-f N Output format:
0 HTML format, with alignments (default)
1 HTML format, no alignments
2 Text list, with alignments
3 Text list, no alignments
-i filename
Query File (default = stdin)
-o filename
VecScreen report Output File (default = stdout)
AUTHOR
The National Center for Biotechnology Information.
SEE ALSO
<http://www.ncbi.nlm.nih.gov/VecScreen/VecScreen_docs.html>
NCBI 2001-10-05 VECSCREEN(1)