I'm experimenting with a script that finds anagrams.
So far this does the job:
The file kord is a word list containing 162060 meaningful Danish words, 1 pr. line.
Is there a way for the script to work on the first word of kord, randomize the letters until it finds itself or another, then the next etc.. instead of picking random words in 'eternal' iteration?
I have an odd issue.
I am trying to copy some files/folders to my linux box via a burned CD which I created on my mac. When I browse the files on the mac (or my windows box), everything looks fine (some of the folder names start with a capital letter, which is needed for everything to work... (8 Replies)
Hello,
I have a list of words.. ranging from 4 to any characters long.. to not more than 20 though.
How can I select only first seven letters of the list of words?
example:-
wwwwwwwwww
eeeee
wererreetf
sdsarddrereewtewt
sdsdsds
sdsd
ereetetttt
ewtwertwrttrttrtrtwtrww
I... (10 Replies)
Hey guys..
Can experts help me in achieving my purpose..
I have a file which contains email address of some 100 to 1000 domains, I need only the domain names..
Eg: abc@yahoo.com
hd@gamil.com
ed@hotmail.com
The output should contain only
Yahoo.com
... (5 Replies)
I want to add letters A,B,C,… in front of every line of input while printing them out using PERL.
eg
A file is parsed as a cmd line arg and its context will be displayed as
A line1...
B line 2..
I tried this..but I want better and perfect solution!
!perl -p
my $counter;
BEGIN { $counter... (4 Replies)
--please have a look at my third post in this thread! there I explained it more clearly--
Hey guys.
I posted a complex problem few days back. No reply! :|
Here is simplified question:
I have a matrix with 0/1:
* col1 col2 col3
row1 1 0 1
row2 0 0 ... (5 Replies)
Hi,
I have a large file that looks like this:
@FCC189PACXX:2:1101:1420:2139/1
AGCGAGACTCCGTCTCAAAAAGAAAAAATTTTTCAAAATATTGCAATGGGCTTGTAATTTCTGCTTAAATGTCAGGAGGTCTGAGCCATT
+
bbbeeeceggggghiiiiiiiiiihfihihiiihhhghiihhihifhihiihhhhhhhhiiigfggggdceeeeebdcc^``bbcbccbb... (3 Replies)
I was wondering how I could cut only the names of items from the following list:
spoons50
cups29
forks50
plates29
I used "man cut" and thought -c would help, but the items have different character lengths. Please note that there is no space between the item and number (so I can't use... (10 Replies)
Hi there, friends!
Writing exams again! This time my wish would be to randomize certain columns in a csv file. Given a file containing records consisting of 3 columns tab-separated:
A B C
A B C
A B C
I would love to get the columns of each record in random order...separated by a tab as... (12 Replies)
Hi there,
first of all this is not homework...this is a new type of exercise for practicing vocabulary with my students.
I have a file consisting of two columns, separated by a tab, each line consisting of a word and its definition, separated by a line break.
What i need is to replace a... (15 Replies)
Discussion started by: eldeingles
15 Replies
LEARN ABOUT DEBIAN
an
AN(6) Games Manual AN(6)NAME
an - Anagram generator
SYNOPSIS
an [-w] [-c string] [-d dictionary] [-l number_words] [-m word_length] [-u string] [-n number_anagrams] [-h] [-v] [--words] [--contain
string] [--dict dictionary] [--length number_words] [--minimum word_length] [--used string] [--number number_anagrams] [--help] [--ver-
sion] PHRASE
DESCRIPTION
an finds all anagrams which can be made from the letters in PHRASE, using words in the specified dictionary. The default is to use
/usr/share/dict/words.
OPTIONS -w, --words
Print words that the letters in PHRASE can make, then exit.
-c, --contain string
Only print anagrams which contain string.
-d, --dict dictionary
Use dictionary file to find words which the letters in PHRASE can make.
-m, --minimum word_length
Only include word which are at least word_length long.
-u, --used string
Considers that letters in string have already used when analyzing letters in PHRASE. Like --contain but doesn't print out string.
-l, --length number_words
Finds anagrams which have a maximum of number_words words in them. This is very useful when number of anagrams which are output is
large.
-n, --number number_anagrams
Stops after finding number_anagrams anagrams.
-h, --help
Print a usage message on standard output, then exit.
-v, --version
Print version information on standard output, then exit.
EXAMPLE
an -c imp 'Paul Martin'
Finds anagrams for Paul Martin which contain the word imp.
AUTHOR
Paul Martin <pm@debian.org>
THANKS
Richard Jones (richard@deep-thought.org)
- Coding and algorithm design of original version.
Julian Assange (proff@suburbia.net)
- Algorithm design of original version.
Please note that the email addresses for Richard and Julian are from over ten years ago and probably no longer work.
COPYRIGHT
Copyright (c) Paul Martin 2012. All rights reserved.
AN(6)