Re: Script to generate names

2006-02-04 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Parv thusly... > ... > in_1="list1" > in_2="list2" > save="list3" > > [ -f "$save" ] && mv -f "$save" "$save--OLD" > { > while read word_1 > do > while read word_2 > do > printf "%s%s\n%s%s\n" \ > "$word_1" "$wor

Re: Script to generate names

2006-02-04 Thread Kristian Vaaf
At 17:13 04.02.2006, Adam Nealis wrote: That's going to ba a large file of mixed words! Would be faster in perl than in the shell. Put the below in a file, and run it like this: perl myfile.pl > myListOfMixedWords #!/usr/bin/perl use warnings; use strict; my @custw; my @dictw; my $cw; my

Re: Script to generate names

2006-02-04 Thread Kristian Vaaf
I am flattered over all this assistance. Thank you indeed Parv, and also Will Maier, you guys have surely taught me a lot. I got my hands full of work currently, but I'll test this script ASAP, and get back to you all. This is going to be great! Here is my copy and paste of it. -- #!/usr

Re: Script to generate names

2006-02-04 Thread Adam Nealis
Kristian Vaaf wrote: Hello. I'm looking for pointers on how to make a simple shell script that will generate new names based on words (one word per line) from two different files, and output these to a third file. This would be nice to come up with new cool names, either for business or pleasu

Re: Script to generate names

2006-02-03 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Will Maier thusly... > > On Fri, Feb 03, 2006 at 11:08:04AM +0100, Kristian Vaaf wrote: > > I'm looking for pointers on how to make a simple shell script that > > will generate new names based on words (one word per line) from > > two different files, and outpu

Re: Script to generate names

2006-02-03 Thread Will Maier
On Fri, Feb 03, 2006 at 11:08:04AM +0100, Kristian Vaaf wrote: > I'm looking for pointers on how to make a simple shell script that will > generate new names based on words (one word per line) from two different > files, and output these to a third file. How bout this? Works on OpenBSD's sh; I ass

Re: Script to generate names

2006-02-03 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Kristian Vaaf thusly... > > I'm looking for pointers on how to make a simple shell script that > will generate new names based on words (one word per line) from > two different files, and output these to a third file. ... > The first file will be a list of cust

Re: Script to generate names

2006-02-03 Thread Kristian Vaaf
I forgot to say; The script should mix the first word in the first list, front and back, with all the words in the second list before it continues to the second word in the first list. I hope that made sense ;) Thanks again ... At 11:08 03.02.2006, you wrote: Hello. I'm looking for pointer

Script to generate names

2006-02-03 Thread Kristian Vaaf
Hello. I'm looking for pointers on how to make a simple shell script that will generate new names based on words (one word per line) from two different files, and output these to a third file. This would be nice to come up with new cool names, either for business or pleasure. The first file wi