I am looking to search a directory for a folder or file and when it finds any hits I want it to store those hits in an array so I can work with those hits later on.
I have been trying to do something like this but it isn't putting results into an array like I would like, is it syntax or is this not possible?
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
Hi,
I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old.
When I am trying to execute the code (as below), it gives an error.
Your help in this... (1 Reply)
Hello,
I am working on solving an NP-Complete problem, so it is very important that operations and data with limited integer-argument ranges be computed using immutable look-up-tables contained entirely in CPU cache. Retrieval of the look-up-table data must never leave the CPU once initially... (6 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
I have a file1.txt
file1.txt
F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true"
F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true"
U-120009217","Lity","U-M-","grey","yes","yes","","Fall River","MA","true"... (4 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
I need to find two matches in the output from ps. I am searching with ps -ef |grep mysql for:
my.cnf
/bin/sh /usr/bin/mysqld_safe --defaults-file=/data/mysql/master/agis_core/etc/my.cnf
after this match I want to search back and match the hostname which is x number of lines back, above the... (2 Replies)
Discussion started by: bash_in_my_head
2 Replies
LEARN ABOUT DEBIAN
seqwords
SEQWORDS(1e) EMBOSS Manual for Debian SEQWORDS(1e)NAME
seqwords - Generates DHF files from keyword search of UniProt.
SYNOPSIS
seqwords -keyfile infile -spfile infile -outfile outfile
seqwords -help
DESCRIPTION
seqwords is a command line program from EMBOSS ("the European Molecular Biology Open Software Suite"). It is part of the "Protein:3D
Structure" command group(s).
OPTIONS
Input section
-keyfile infile
This option specifies the name of keywords file (input). This contains a list of keywords specific to a number of SCOP or CATH families
and superfamilies used by SEQWORDS to search a sequence database.
-spfile infile
This option specifies the name of the sequence database (input) to search.
Output section
-outfile outfile
This option specifies the name of the DHF file (domain hits file) (output). A 'domain hits file' contains database hits (sequences)
with domain classification information, in the DHF format (FASTA-like). The hits are relatives to a SCOP or CATH family (or other node
in the structural hierarchies) and are found from a search of a sequence database. Files containing hits retrieved by PSIBLAST are
generated by using SEQSEARCH, hits retrieved by a sparse protein signatare by using SIGSCAN or various types of HMM and profile by
using LIBSCAN. Default value: test.hits
BUGS
Bugs can be reported to the Debian Bug Tracking system (http://bugs.debian.org/emboss), or directly to the EMBOSS developers
(http://sourceforge.net/tracker/?group_id=93650&atid=605031).
SEE ALSO
seqwords is fully documented via the tfm(1) system.
AUTHOR
Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Wrote the script used to autogenerate this manual page.
COPYRIGHT
This manual page was autogenerated from an Ajax Control Definition of the EMBOSS package. It can be redistributed under the same terms as
EMBOSS itself.
DOMSEARCH 0.1.0++20100721 08/11/2010 SEQWORDS(1e)