09-10-2015
Thanks, RudiC. So it would like the indexing solution you proposed earlier? Would that happen in Perl or something else? Or is it not feasible anyway? I realize there's a lot of computing going on with this problem, but it strikes me as having a very simple solution in the right language.
---------- Post updated at 01:01 PM ---------- Previous update was at 12:53 PM ----------
Sorry all, I replied before I'd seen the thread had gone on to a second page. drl, I like the sieve idea and actually had thought something like that should be easy enough to implement. My problem is that I have no idea how to code it or which language even to use. Seemed to me there would be an easy way to make an ordered list of all permutations
AAA, AAB, AAC, AAD, . . . , AAY, AAZ; ABA, ABB, ABC, ABD, . . .
and ask which of these are real words by comparing it to a list of real words. As long as the matches are returned by order according to the all-permutations list, my results would already be grouped appropriately.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I need to compare the contents of 2 directories where the file contents are similar and take out the filenames whose contents does not exist within the 2 directories.
Directory1
1
2
3
4
Directory2
54
55
56
57
Does anyone has a script which can do this?
At the end of... (6 Replies)
Discussion started by: manualvin
6 Replies
2. Shell Programming and Scripting
Hi Friends,
I have 2 files A and B . I want to compare the 3rd line of file A and B .
(I dont want to compare the 2 files, using diff or cmp). I just want to know whether 3rd line of A matches the 3 rd line of B. Can anybody share their knowledge on the same?
Thanks ,
Vijaya (12 Replies)
Discussion started by: vijaya2006
12 Replies
3. Shell Programming and Scripting
Hi all, I am trying to write a command that can help me count the number of lines in the /etc/passwd file ending in bash.
I have read through other threads but am yet to find one indicating how to locate a specifc word at the end of a line. I know i will need to use the wc command but when i... (8 Replies)
Discussion started by: warlock129
8 Replies
4. Shell Programming and Scripting
i have 2 files and i want to compare
i currently cat the files and awk print $1, $2 and doing if file1=file2 then fail, else exit 0
what i want to do is compare values, with column 1 being a reference i want to compare line by line and then still be able to do if then statement to see if worked... (1 Reply)
Discussion started by: sigh2010
1 Replies
5. Shell Programming and Scripting
Hello,
Please help me with this problem if you have a solution.
I have two files:
<file1> : In each line, first word is an Id and then other words that belong to this Id
piMN-1 abc pqr xyz py12
niLM y12 FY4 pqs
fiRLym F12 kite red
<file2> : same as file1, but can have extra lds... (3 Replies)
Discussion started by: mira
3 Replies
6. Shell Programming and Scripting
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Discussion started by: vsachan
2 Replies
7. UNIX for Dummies Questions & Answers
Total UNIX Rookie, but I'm learning. I have columns of integer data separated by spaces, and I'm using a Mac terminal.
What I want to do:
1. Compare "line 1 column 2" (x) to "line 2 column 2" (y); is y-x>=100?
2. If yes, display difference and y's line number
3. If no, increment x and y by... (9 Replies)
Discussion started by: markymarkg123
9 Replies
8. UNIX for Dummies Questions & Answers
Hi, i have a file like this:
A1
kdfjdljfdkljfdlf
A2
lfjdlfkjddkjf
A3
***no hit***
A4
ldjfldjfdk
A5
***no hit***
A6
jldfjdlfjdlkfjd
I want to remove the lines "***no hit*** and their above line to get an output file like this: (11 Replies)
Discussion started by: the_simpsons
11 Replies
9. Shell Programming and Scripting
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
10. Shell Programming and Scripting
Hi gents,
Have only a passing familiarity with linux/shell at this point, so please forgive simple question.
I have text files that have lines something like the following:
a
b
c
d
d
d
e
f
e
f
e
f
a
b (6 Replies)
Discussion started by: cabled
6 Replies
LEARN ABOUT CENTOS
sggbak.f
sggbak.f(3) LAPACK sggbak.f(3)
NAME
sggbak.f -
SYNOPSIS
Functions/Subroutines
subroutine sggbak (JOB, SIDE, N, ILO, IHI, LSCALE, RSCALE, M, V, LDV, INFO)
SGGBAK
Function/Subroutine Documentation
subroutine sggbak (characterJOB, characterSIDE, integerN, integerILO, integerIHI, real, dimension( * )LSCALE, real, dimension( * )RSCALE,
integerM, real, dimension( ldv, * )V, integerLDV, integerINFO)
SGGBAK
Purpose:
SGGBAK forms the right or left eigenvectors of a real generalized
eigenvalue problem A*x = lambda*B*x, by backward transformation on
the computed eigenvectors of the balanced pair of matrices output by
SGGBAL.
Parameters:
JOB
JOB is CHARACTER*1
Specifies the type of backward transformation required:
= 'N': do nothing, return immediately;
= 'P': do backward transformation for permutation only;
= 'S': do backward transformation for scaling only;
= 'B': do backward transformations for both permutation and
scaling.
JOB must be the same as the argument JOB supplied to SGGBAL.
SIDE
SIDE is CHARACTER*1
= 'R': V contains right eigenvectors;
= 'L': V contains left eigenvectors.
N
N is INTEGER
The number of rows of the matrix V. N >= 0.
ILO
ILO is INTEGER
IHI
IHI is INTEGER
The integers ILO and IHI determined by SGGBAL.
1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0.
LSCALE
LSCALE is REAL array, dimension (N)
Details of the permutations and/or scaling factors applied
to the left side of A and B, as returned by SGGBAL.
RSCALE
RSCALE is REAL array, dimension (N)
Details of the permutations and/or scaling factors applied
to the right side of A and B, as returned by SGGBAL.
M
M is INTEGER
The number of columns of the matrix V. M >= 0.
V
V is REAL array, dimension (LDV,M)
On entry, the matrix of right or left eigenvectors to be
transformed, as returned by STGEVC.
On exit, V is overwritten by the transformed eigenvectors.
LDV
LDV is INTEGER
The leading dimension of the matrix V. LDV >= max(1,N).
INFO
INFO is INTEGER
= 0: successful exit.
< 0: if INFO = -i, the i-th argument had an illegal value.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
November 2011
Further Details:
See R.C. Ward, Balancing the generalized eigenvalue problem,
SIAM J. Sci. Stat. Comp. 2 (1981), 141-152.
Definition at line 147 of file sggbak.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.2 Tue Sep 25 2012 sggbak.f(3)