From owner-freebsd-questions@FreeBSD.ORG Fri Feb 3 10:08:00 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 544B316A420 for ; Fri, 3 Feb 2006 10:08:00 +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 BA2F843D53 for ; Fri, 3 Feb 2006 10:07:59 +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 <0IU300CWJWEIHJ00@osl1smout1.broadpark.no> for questions@freebsd.org; Fri, 03 Feb 2006 11:13:30 +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 <0IU300KB6W9DX890@osl1sminn1.broadpark.no> for questions@freebsd.org; Fri, 03 Feb 2006 11:10:26 +0100 (CET) Date: Fri, 03 Feb 2006 11:08:04 +0100 From: Kristian Vaaf To: questions@freebsd.org Message-id: <7.0.1.0.2.20060203110425.01744328@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 Cc: Subject: 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:08:00 -0000 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