From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 21:19:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 711C816A417 for ; Tue, 11 Dec 2007 21:19:31 +0000 (UTC) (envelope-from maslak@ihlas.net.tr) Received: from pop3.ihlas.net.tr (smtp.ihlas.net.tr [213.238.128.249]) by mx1.freebsd.org (Postfix) with SMTP id CFBCE13C442 for ; Tue, 11 Dec 2007 21:19:30 +0000 (UTC) (envelope-from maslak@ihlas.net.tr) Received: (qmail 18448 invoked by uid 89); 11 Dec 2007 21:19:32 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1 (http://www.enderunix.org/qsheff/) Received: from unknown (HELO ihlasnetym) (213.238.150.220) by 0 with SMTP; 11 Dec 2007 21:19:30 -0000 Message-ID: <000a01c83c3b$7e5b0350$dc96eed5@ihlasnetym> From: "Halid Faith" To: Date: Tue, 11 Dec 2007 23:19:17 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How can I assign these valuables concerning places as correctly ? 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: Tue, 11 Dec 2007 21:19:31 -0000 I have a file called A which contains variable values as below; file1, abc12 foot1, cba11 boby, def123 ... Also I have another file called B which contains partly valuable values = as following; begin Server valuable1 Client valuable2 end I have to assign the first column valuables in A to valuable1 in B and = assign second column valuable1 in A to valuable2 in B. Finally I should see as following in a file called C Server file1 Client abc12 Server foot1 Client cba11 Server boby=20 Client def123 How can I do that ? Could you give me a script ? Thanks