Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Feb 2006 11:12:37 +0100
From:      Kristian Vaaf <vaaf@broadpark.no>
To:        questions@freebsd.org
Subject:   Re: Script to generate names
Message-ID:  <7.0.1.0.2.20060203111038.01744470@broadpark.no>
In-Reply-To: <7.0.1.0.2.20060203110425.01744328@broadpark.no>
References:  <7.0.1.0.2.20060203110425.01744328@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help

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 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 will be a list of custom words.
>The second file will be /usr/local/share/dict/words.
>
>If the first word in the custom list is "apathy" and the first word in the
>dictionary file is "alien", it will generate:
>
>apathyalien
>alienapathy
>
>To a third file. And then continue with the rest of the words ...
>
>A friend told me I could do something like this:
>
>for i in $(<list1) $(<list2) ; do echo -n $i ; done && echo >> list 3
>
>Do you all think the same?
>
>Thank you so much,
>Kristian
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7.0.1.0.2.20060203111038.01744470>