From owner-freebsd-questions@FreeBSD.ORG Fri Feb 3 10:12:32 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3098216A420 for ; Fri, 3 Feb 2006 10:12:32 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBCC843D4C for ; Fri, 3 Feb 2006 10:12:31 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IU300CEDWM2HF10@osl1smout1.broadpark.no> for questions@freebsd.org; Fri, 03 Feb 2006 11:18:02 +0100 (CET) Received: from urban.broadpark.no ([213.187.181.70]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IU300KHOWGYX790@osl1sminn1.broadpark.no> for questions@freebsd.org; Fri, 03 Feb 2006 11:14:59 +0100 (CET) Date: Fri, 03 Feb 2006 11:12:37 +0100 From: Kristian Vaaf In-reply-to: <7.0.1.0.2.20060203110425.01744328@broadpark.no> To: questions@freebsd.org Message-id: <7.0.1.0.2.20060203111038.01744470@broadpark.no> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <7.0.1.0.2.20060203110425.01744328@broadpark.no> Cc: Subject: Re: Script to generate names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 10:12:32 -0000 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 $(> 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"